Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 961 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 961 Bytes

Schema for tmLanguage files

This is a JSON schema for TextMate grammar definitions.

Can be used to get intellisense working when editing grammar definitions within Visual Studio Code.

About this fork

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

Usage

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",
  ...
}