TextMate grammar guide
Introduction
A TextMate language grammar ("TextMate grammar", or "TM grammar" in short) is a descriptive form of specifying tokenization rules, which was invented for the TextMate editor and has been adopted by numerous editors. It is a structured collection of Oniguruma regular expressions, and is typically written as a plist (XML) or JSON file.
References
- Writing a TextMate Grammar: Some Lessons Learned | Matt Neuburgopen in new window
- Language Grammars | TextMate 1.x Manualopen in new window
- Scope Selectors | TextMate 1.x Manualopen in new window
- Regular Expressions | TextMate 1.x Manualopen in new window
- Syntax highlighting | Visual Studio Code Extension APIopen in new window
- vscode-textmateopen in new window
- Onigurumaopen in new window
- What is the difference between
injections
andinjectionSelector
in tmLanguage grammars? | Stack Overflowopen in new window - Injection Grammars & Project Variables | TextMate Newsopen in new window
- Language Grammars | TextMate 2 Manualopen in new window