From 919edfb323609e31aa6e1f296d621782858a8533 Mon Sep 17 00:00:00 2001 From: Erasin Date: Sun, 31 Jul 2022 01:34:00 +0800 Subject: Add Graphviz Dot lang support (#3241) Co-authored-by: Michael Davis --- runtime/queries/dot/highlights.scm | 43 ++++++++++++++++++++++++++++++++++++++ runtime/queries/dot/injections.scm | 2 ++ 2 files changed, 45 insertions(+) create mode 100644 runtime/queries/dot/highlights.scm create mode 100644 runtime/queries/dot/injections.scm (limited to 'runtime/queries/dot') 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")) -- cgit v1.2.3-70-g09d2