Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Text Mate Language Syntax HighlighterNew to Visual Studio Code? Get it now.

Text Mate Language Syntax Highlighter

RedCMD

|
170 installs
| (0) | Free
Syntax Highlighting for Json based Text Mate Language
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TmLanguage-Syntax-Highlighter

Syntax Highlighting for JSON based TextMate Language and Regex

Marketplace Version Downloads Installs Rating

Features

Big update, almost supports 100% of the textmate specification

Example code:
example-code

Highlights scope names with their own themed colour in realtime:
list-of-VSCode-Dark+-scopenames-and-their-colours

Invalid code is highlighted in red and underlined
Incorrect code is highlighted in red and with italics
Unsupported json keys and values default back to their standard json colours
Unknown code is highlighted red

JSON error checking

JSON based error squiggles can be enabled by manually adding the language id to the json language server code
Open the file at \Microsoft VS Code\resources\app\extensions\json-language-features\client\dist\node\jsonClientMain.js
Ctrl+F to find the text "jonsc" and immediately copy/paste ,"json-tmLanguage" after it. (take note that the L is capitalised)
It should look like this: const S=["json","jsonc","json-tmLanguage"],
enable-json-lanuage-server

Requirements

This extension was designed with VSCode's default Dark+ theme in mind
Other themes may work with various successes
If you would like me to add support for a theme, please just message me

For more information

  • Github - VSCode TextMate
  • Github - Oniguruma
  • Github - Oniguruma: list of everything
  • Github - TmLanguage-Syntax-Highlighter
  • Github - TextMates Schema

Todo

  • Support posix's super buggy behaviour: Github Issue - Funky Posix Classes
  • Fix char ranges in character classes or wait for vscode to fix textmate bug ([\\\\-\\\\]): Github Issue - Subroutines breaking tokenization
  • Allow spaces, underscores and dashes in all places inside Unicode Categorys \\p{ Let _te--r}: Github - List of unicode properties
  • Try* to fix contention between backreferences \\1 and character codes \\1
  • Detect and limit backreferences/subroutines/conditional-capture-groups \\1/\\k<1>/\\g<1>/(?(<1>)) to the actual amount of capture groups available
  • Detect all invalid character class ranges [z-a]
  • Support invalid code points at the end of range in character classes. (ONIG_SYN_ALLOW_INVALID_CODE_END_OF_RANGE_IN_CC)
  • Correctly invalidate look-around capture groups inside all types of capture groups nested inside look-behind capture groups
  • Improve bracket features: Colourization, matching, autocomplete, surround
  • Limit look-behind length to 65536 characters
  • Limit all repeating quantifiers to 100000
  • Unify ways of displaying errors
  • Improve performance: Github Issue - Capturing and applying a pattern causes performance loss
  • Fix auto indenting: Github Issue - Split bracket indentating and bracket pair highlighting
  • Add a language server for squiggle based error checking
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2022 Microsoft