summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--queries/json/highlights.scm13
2 files changed, 14 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6a45ebee..3df34033 100644
--- a/README.md
+++ b/README.md
@@ -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