- This folder contains all of the files necessary for the extension. The structure was built with Yeoman Generator.
package.json
- this is the manifest file in which you declare your language support and define the location of the grammar file that has been copied into your extension.syntaxes/scp.tmLanguage.json
- this is the Text mate grammar file that is used for tokenization.language-configuration.json
- this is the language configuration, defining the tokens that are used for comments and brackets.
- Test your regular expressions with https://rubular.com/
- Some documentation:
- Development notes for
scp.tmLanguage.json
:- The innermost TextMate scope (
name
field) determines the syntax highlight color. - Parent scopes are used to better define the meaning and purpose of the grammar rule, since we might be forced to use unfitting common scopes in order to have the desired colors, with compatibility with existing themes.
- The innermost TextMate scope (
- Make sure the language configuration settings in
language-configuration.json
are accurate. - Press
F5
to open a new window with your extension loaded. - Create a new file with a file name suffix matching your language.
- You can relaunch the extension from the debug toolbar after making changes to the files listed above.
- You can also reload (
Ctrl+R
orCmd+R
on Mac) the VS Code window with your extension to load your changes.