Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mwcz/textmate-grammar-rs
WIP: Draft: NotYetImplemented: a Rust parser for TextMate grammar files.
https://github.com/mwcz/textmate-grammar-rs
Last synced: 16 days ago
JSON representation
WIP: Draft: NotYetImplemented: a Rust parser for TextMate grammar files.
- Host: GitHub
- URL: https://github.com/mwcz/textmate-grammar-rs
- Owner: mwcz
- License: bsd-2-clause
- Created: 2023-08-14T13:26:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-15T14:15:19.000Z (over 1 year ago)
- Last Synced: 2025-01-22T23:44:15.397Z (21 days ago)
- Language: Rust
- Size: 895 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# textmate-grammar-rs
WIP: Draft: NotYetImplemented: a Rust parser for TextMate grammar files.
All that can currently be done with this is run some tests which attempt to parse all the TextMate grammar files from [Shiki](https://github.com/shikijs/shiki).
To see the coverage:
```
cargo test
```Currently 3 grammar files can't be parsed for mundane reasons which can be fixed with some tweaking.
38 additional grammar files can't be parsed because they contain regular expressions incompatible with Oniguruma, the regex engine used by TextMate grammars.
The remaining 132 grammar files are parsed successfully.
Only fields defined in the [TextMage language grammar definition](https://macromates.com/manual/en/language_grammars) are captured. Non-standard fields are (currently) skipped.