This is a JSON schema for TextMate grammar definitions.
Can be used to get intellisense working when editing grammar definitions within Visual Studio Code.
This fork contains some improvements over the original code by Martin Ring, like
- Disallow additional props in pattern definition to prevent typos like "pattern" instead of "patterns", or "beginCapture" instead of "beginCaptures"
- Correctly specify "while" and "whileCapture"
- Specify the possible values for "include"
- Allow additional properties in document root
- Some smaller fixes
To make use of this Schema file, add the following $schema
property to your tmLanguage file:
{
"$schema": "https://raw.githubusercontent.com/jens-duttke/tmlanguage/master/tmlanguage.json",
...
}