Skip to content

WIP: Draft: NotYetImplemented: a Rust parser for TextMate grammar files.

License

Notifications You must be signed in to change notification settings

mwcz/textmate-grammar-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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 are captured. Non-standard fields are (currently) skipped.

About

WIP: Draft: NotYetImplemented: a Rust parser for TextMate grammar files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages