diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | queries/json/highlights.scm | 13 |
2 files changed, 14 insertions, 1 deletions
@@ -162,7 +162,7 @@ List of currently supported languages: - [x] javascript (maintained by @steelsojka) - [x] typescript (maintained by @steelsojka) - [ ] tsx -- [ ] json +- [x] json (maintained by @steelsojka) - [x] html (maintained by @TravonteD) - [ ] csharp - [ ] swift diff --git a/queries/json/highlights.scm b/queries/json/highlights.scm new file mode 100644 index 00000000..bdc35ad9 --- /dev/null +++ b/queries/json/highlights.scm @@ -0,0 +1,13 @@ +(true) @boolean +(false) @boolean +(null) @constant.builtin +(number) @number +(pair key: (string) @label) +(pair value: (string) @string) +(string_content (escape_sequence) @string.escape) +(ERROR) @error +"," @punctuation.delimiter +"[" @punctuation.bracket +"]" @punctuation.bracket +"{" @punctuation.bracket +"}" @punctuation.bracket |
