CLI - A tmLanguage based Grammar Parser for cSpell
npm install cspell-grammar-toolThis tool parses a text file with a given tmLanguage grammar definition.
WIP -- This is a Work In Progress
``sh`
cspell-grammar --help
This tool will colorize a source code file.
`sh`
cspell-grammar colorize
This language parser support tmLanguage style grammars.
- Works ONLY with Node 8 and above or Javascript engines that support RegExp look back.
- Most tmLanguage grammars use RegExp based upon Oniguruma engine. This grammar engine attempts to
simulate the features of Oniguruma, but it may fail. At the grammar engine's core, XRegExp is used.
So any limitations in XRegExp are also limitations in the grammar.
- \A, \G, \Z, \z` flags are simulated in a best attempt, but it is not possible to get them
exactly right.