{"id":17693813,"url":"https://github.com/eyelash/prism","last_synced_at":"2026-01-21T09:04:28.981Z","repository":{"id":72507436,"uuid":"434006789","full_name":"eyelash/prism","owner":"eyelash","description":"incremental PEG-based syntax highlighting engine","archived":false,"fork":false,"pushed_at":"2024-07-31T07:35:07.000Z","size":211,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T01:46:34.880Z","etag":null,"topics":["cpp","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eyelash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-01T22:35:41.000Z","updated_at":"2024-11-10T23:39:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"9697e9e7-46f1-49a4-a041-44c41b40f68c","html_url":"https://github.com/eyelash/prism","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eyelash/prism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyelash%2Fprism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyelash%2Fprism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyelash%2Fprism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyelash%2Fprism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyelash","download_url":"https://codeload.github.com/eyelash/prism/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyelash%2Fprism/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28630938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","syntax-highlighting"],"created_at":"2024-10-24T13:47:03.936Z","updated_at":"2026-01-21T09:04:28.961Z","avatar_url":"https://github.com/eyelash.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"prism 🌈️\n--------\n\nAn incremental [PEG](https://en.wikipedia.org/wiki/Parsing_expression_grammar)-based syntax highlighting engine written in C++.\n\n```cpp\n#include \u003cprism.hpp\u003e\n#include \u003ccassert\u003e\n\nint main() {\n    const StringInput input = \"int main() { return 42; }\";\n    const Language* language = prism::get_language(\"file.c\");\n    Cache cache;\n    auto spans = prism::highlight(language, \u0026input, cache, 0, input.size());\n\n    std::vector\u003cSpan\u003e expected = {\n        {0, 3, Style::TYPE},\n        {13, 19, Style::KEYWORD},\n        {20, 22, Style::LITERAL},\n    };\n    assert(spans == expected);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyelash%2Fprism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyelash%2Fprism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyelash%2Fprism/lists"}