This is a template for use with vscode-grammar-builder and vscode-grammar-types
-
Find/Replace all instances of
foo
with your language ID/extension. Be sure to use thePreserve Case
option -
Find/Replace all instances of
ffs
with your language's file extension -
Replace
foo
in file names (src/foo.config.json
) with your language name -
Update author / publisher / description in
package.json
-
Replace the unlicense
LICENSE
with your preferred license and update the field inpackage.json
-
The usual VS Code extension stuff like adding an icon, replacing this readme, etc
-
Write your grammar in TypeScript with regex literals, builder functions etc
-
If you have an existing json grammar, decompile it to TypeScript via
npm run decomp --out path/to/decompileInto path/to/yourGrammar.tmLanguage.json
-
Build, package, and install
npm run build
npm run package
npm run install-extension