diff options
| author | rydesun <rydesun@gmail.com> | 2021-09-01 22:25:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-01 09:25:45 -0500 |
| commit | f900e5dfc889f5c48803d0723ec395ffe46e7bad (patch) | |
| tree | db9d99606fc25ae9e99406d9482d97d9e913aaad /queries/dot | |
| parent | 34de06d4e8fc46090325dcaa3e8d74e295dd8ef1 (diff) | |
Add tree-sitter-dot (#1770)
* Add tree-sitter-dot
* Fix DOT highlights
* highlights(DOT): add HTML string
* Remove DOT ftdetect
Vim and Neovim runtime have added DOT filetype detection
* Update DOT highlights
Diffstat (limited to 'queries/dot')
| -rw-r--r-- | queries/dot/highlights.scm | 45 | ||||
| -rw-r--r-- | queries/dot/injections.scm | 1 |
2 files changed, 46 insertions, 0 deletions
diff --git a/queries/dot/highlights.scm b/queries/dot/highlights.scm new file mode 100644 index 00000000..86bb9b30 --- /dev/null +++ b/queries/dot/highlights.scm @@ -0,0 +1,45 @@ +(identifier) @type +(keyword) @keyword +(string_literal) @string +(number_literal) @number + +[ + (edgeop) + (operator) +] @operator + +[ + "," + ";" +] @punctuation.delimiter + +[ + "{" + "}" + "[" + "]" + "<" + ">" +] @punctuation.bracket + +(subgraph + id: (id + (identifier) @namespace) +) + +(attribute + name: (id + (identifier) @field) +) + +(attribute + value: (id + (identifier) @constant) +) + +[ +(comment) +(preproc) +] @comment + +(ERROR) @error diff --git a/queries/dot/injections.scm b/queries/dot/injections.scm new file mode 100644 index 00000000..3dd830b4 --- /dev/null +++ b/queries/dot/injections.scm @@ -0,0 +1 @@ +(html_internal) @html |
