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: 2 months 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T14:15:19.000Z (almost 2 years ago)
- Last Synced: 2025-03-17T17:09:28.810Z (3 months 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.