mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
49
runtime/queries/dot/highlights.scm
Normal file
49
runtime/queries/dot/highlights.scm
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
(identifier) @type
|
||||
|
||||
[
|
||||
"strict"
|
||||
"graph"
|
||||
"digraph"
|
||||
"subgraph"
|
||||
"node"
|
||||
"edge"
|
||||
] @keyword
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
(number_literal) @number
|
||||
|
||||
[
|
||||
(edgeop)
|
||||
(operator)
|
||||
] @operator
|
||||
|
||||
[
|
||||
","
|
||||
";"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket
|
||||
|
||||
(subgraph
|
||||
id: (id
|
||||
(identifier) @module))
|
||||
|
||||
(attribute
|
||||
name: (id
|
||||
(identifier) @variable.member))
|
||||
|
||||
(attribute
|
||||
value: (id
|
||||
(identifier) @constant))
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(preproc) @keyword.directive
|
||||
9
runtime/queries/dot/indents.scm
Normal file
9
runtime/queries/dot/indents.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
(block)
|
||||
(attr_list)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch @indent.end
|
||||
5
runtime/queries/dot/injections.scm
Normal file
5
runtime/queries/dot/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
((html_internal) @injection.content
|
||||
(#set! injection.language "html"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue