npm install
- Install all dependencies- Launch
Extension
configuration (hit F5)
- Make edits to syntaxes/kusto.tmLanguage.yml
- Verify changes are valid by running
npm run convert
. This will convert the kusto.tmLanguage.yml into a JSON file. You can also:- Run the "Convert yaml theme to json" task. This just runs the convert script.
- Launch the
Extension
configuration (hit F5). This runs the "Convert yaml theme to json" task.
- VSCode: Syntax Highlight Guide
- Textmate Manual: Language Grammars
- Writing a TextMate Grammar: Some Lessons Learned
- A regex debugging tool like regex101.com. Should support Oniguruma or PCRE2 regular expressions
Isolated testing of the grammar is available with snapshot tests, via PanAeon/vscode-tmgrammar-test. Read more here.
- Run snapshot tests:
npm run test
. - Update snapshots:
npm run test:update-snapshots
Manually-taken visual snapshots of how the syntax highlighting looks with certain themes are in test/snapshots/**/theme-screenshots
. Filenames indicate the test file and theme used.
- [Kuskus] Kusto (Dark)
- Monokai
- Dark+ (default dark)
- Light+ (default light)
- Base16 Default Dark
Please update the visual snapshots when making tmLanguage changes. To take new snapshots, run the "All (Extension Pack)" target (see root launch.json
), enable a particular Theme, and use the CodeSnap extension to take the screenshot.