GRAMMAR_REGISTRY
A registry of known languages that can parsed and tokenized.
To add a new language, do the following:
Obtain the grammar file from: https://github.com/shikijs/textmate-grammars-themes/tree/main/packages/tm-grammars/raw
The
scopeNameis a part of theJSONwith the keyscopeName.Copy the grammar file into
resourcesCreate a mapping from the
Languageto the name of the grammarresource.