Skip to content

JSON schema for TextMate grammar definitions

License

Notifications You must be signed in to change notification settings

jens-duttke/tmlanguage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published