diff options
author | Erasin | 2022-07-30 17:34:00 +0000 |
---|---|---|
committer | GitHub | 2022-07-30 17:34:00 +0000 |
commit | 919edfb323609e31aa6e1f296d621782858a8533 (patch) | |
tree | f3016d2315455abb25d1177318df6062fd20b098 /runtime/queries/dot | |
parent | 5ca98edfb1b961a9b85dbada0e71036534900be6 (diff) |
Add Graphviz Dot lang support (#3241)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/dot')
-rw-r--r-- | runtime/queries/dot/highlights.scm | 43 | ||||
-rw-r--r-- | runtime/queries/dot/injections.scm | 2 |
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")) |