mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
55
runtime/queries/dot/highlights.scm
Normal file
55
runtime/queries/dot/highlights.scm
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
(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) @namespace)
|
||||
)
|
||||
|
||||
(attribute
|
||||
name: (id
|
||||
(identifier) @field)
|
||||
)
|
||||
|
||||
(attribute
|
||||
value: (id
|
||||
(identifier) @constant)
|
||||
)
|
||||
|
||||
(comment) @comment
|
||||
|
||||
(preproc) @preproc
|
||||
|
||||
(comment) @spell
|
||||
|
||||
(ERROR) @error
|
||||
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