cspell-grammar-tool
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Grammar Parser Tool

This tool parses a text file with a given tmLanguage grammar definition.

WIP -- This is a Work In Progress

Usage

cspell-grammar --help

Colorize

This tool will colorize a source code file.

cspell-grammar colorize <tmLanguage> <sourcefile>

This language parser support tmLanguage style grammars.

Notes

  • 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.

Readme

Keywords

Package Sidebar

Install

npm i cspell-grammar-tool

Weekly Downloads

87

Version

0.1.5

License

MIT

Unpacked Size

391 kB

Total Files

42

Last publish

Collaborators

  • jason-dent