jens-duttke / tmlanguage

JSON schema for TextMate grammar definitions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

JSON schema for TextMate grammar definitions

License:MIT License