aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/dot/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/dot/highlights.scm')
-rw-r--r--runtime/queries/dot/highlights.scm43
1 files changed, 43 insertions, 0 deletions
diff --git a/runtime/queries/dot/highlights.scm b/runtime/queries/dot/highlights.scm
new file mode 100644
index 00000000..6ad64d28
--- /dev/null
+++ b/runtime/queries/dot/highlights.scm
@@ -0,0 +1,43 @@
+(keyword) @keyword
+(string_literal) @string
+(number_literal) @constant.numeric
+
+[
+ (edgeop)
+ (operator)
+] @operator
+
+[
+ ","
+ ";"
+] @punctuation.delimiter
+
+[
+ "{"
+ "}"
+ "["
+ "]"
+ "<"
+ ">"
+] @punctuation.bracket
+
+(subgraph
+ id: (id
+ (identifier) @namespace)
+)
+
+(attribute
+ name: (id
+ (identifier) @type)
+ value: (id
+ (identifier) @constant)
+)
+
+[
+ (comment)
+ (preproc)
+] @comment
+
+(ERROR) @error
+
+(identifier) @variable