{"id":23171526,"url":"https://github.com/vsce-toolroom/textmate-scope-selector-peg","last_synced_at":"2026-01-31T15:33:19.560Z","repository":{"id":266521406,"uuid":"897023904","full_name":"vsce-toolroom/textmate-scope-selector-peg","owner":"vsce-toolroom","description":"Textmate scope selector implementation as a PEG (parser grammar) in Rust.","archived":false,"fork":false,"pushed_at":"2024-12-07T19:43:07.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T07:37:04.947Z","etag":null,"topics":["grammar","peg","rust","textmate"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsce-toolroom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-12-01T21:40:36.000Z","updated_at":"2024-12-07T19:42:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"67623f23-ac40-437b-9481-5439ef15b65a","html_url":"https://github.com/vsce-toolroom/textmate-scope-selector-peg","commit_stats":null,"previous_names":["vsce-toolroom/textmate-scope-selector-peg"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vsce-toolroom/textmate-scope-selector-peg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsce-toolroom%2Ftextmate-scope-selector-peg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsce-toolroom%2Ftextmate-scope-selector-peg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsce-toolroom%2Ftextmate-scope-selector-peg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsce-toolroom%2Ftextmate-scope-selector-peg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsce-toolroom","download_url":"https://codeload.github.com/vsce-toolroom/textmate-scope-selector-peg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsce-toolroom%2Ftextmate-scope-selector-peg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28946778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["grammar","peg","rust","textmate"],"created_at":"2024-12-18T04:18:07.693Z","updated_at":"2026-01-31T15:33:19.534Z","avatar_url":"https://github.com/vsce-toolroom.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `textmate-scope-selector-peg`\n\nPerformant port of the Textmate scope selector parser from JavaScript to Rust.\n\nThe original parser grammar (PegJS) lives at [atom/first-mate](https://github.com/atom/first-mate).\n\n## Performance\n\n### `selector.matches`\n\nThe `rust-peg` parser was benchmarked for matching scopes against the following input:\n\n- Selector: `source.matlab -comment -entity -support -string -variable -interpolation -source.shell`\n- Match: `source.matlab meta.class.matlab meta.class.declaration.matlab entity.name.type.class.matlab`\n\nThe Rust crates parser produced speeds of $7.47ns/iter$, reduced from $31.8ns/iter$ in the `peggy` parser.\n\n### `selector.get_prefix`\n\nThe `rust-peg` parser was benchmarked for prefix matching against the following input:\n\n- Selector: `L:text.html.markdown - (comment, string, meta.paragraph.markdown, markup.*.block.markdown)`\n- Match: `text.html.markdown meta.paragraph.markdown`\n\nThe Rust crate's parser produced speeds of $19.78ns/iter$.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsce-toolroom%2Ftextmate-scope-selector-peg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsce-toolroom%2Ftextmate-scope-selector-peg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsce-toolroom%2Ftextmate-scope-selector-peg/lists"}