aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/json/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/json/highlights.scm')
-rw-r--r--runtime/queries/json/highlights.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/runtime/queries/json/highlights.scm b/runtime/queries/json/highlights.scm
new file mode 100644
index 000000000..85915285a
--- /dev/null
+++ b/runtime/queries/json/highlights.scm
@@ -0,0 +1,38 @@
+[
+ (true)
+ (false)
+] @boolean
+
+(null) @constant.builtin
+
+(number) @number
+
+(pair
+ key: (string) @property)
+
+(pair
+ value: (string) @string)
+
+(array
+ (string) @string)
+
+[
+ ","
+ ":"
+] @punctuation.delimiter
+
+[
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket
+
+("\"" @conceal
+ (#set! conceal ""))
+
+(escape_sequence) @string.escape
+
+((escape_sequence) @conceal
+ (#eq? @conceal "\\\"")
+ (#set! conceal "\""))