aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/dot
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/dot')
-rw-r--r--runtime/queries/dot/highlights.scm43
-rw-r--r--runtime/queries/dot/injections.scm2
2 files changed, 45 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
diff --git a/runtime/queries/dot/injections.scm b/runtime/queries/dot/injections.scm
new file mode 100644
index 00000000..1bfffa1b
--- /dev/null
+++ b/runtime/queries/dot/injections.scm
@@ -0,0 +1,2 @@
+((html_internal) @injection.content
+ (#set! injection.language "html"))