mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -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
50
runtime/queries/properties/highlights.scm
Normal file
50
runtime/queries/properties/highlights.scm
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
(key) @property
|
||||
|
||||
(value) @string
|
||||
|
||||
(value
|
||||
(escape) @string.escape)
|
||||
|
||||
((value) @boolean
|
||||
(#any-of? @boolean "true" "false"))
|
||||
|
||||
((value) @number
|
||||
(#lua-match? @number "^%d+$"))
|
||||
|
||||
((index) @number
|
||||
(#lua-match? @number "^%d+$"))
|
||||
|
||||
((substitution
|
||||
(key) @constant)
|
||||
(#lua-match? @constant "^[A-Z_][A-Z0-9_]*$"))
|
||||
|
||||
(substitution
|
||||
(key) @function
|
||||
"::" @punctuation.special
|
||||
(secret) @constant.macro)
|
||||
|
||||
(property
|
||||
[
|
||||
"="
|
||||
":"
|
||||
] @operator)
|
||||
|
||||
[
|
||||
"${"
|
||||
"}"
|
||||
] @punctuation.special
|
||||
|
||||
(substitution
|
||||
":" @punctuation.special)
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"."
|
||||
"\\"
|
||||
] @punctuation.delimiter
|
||||
2
runtime/queries/properties/injections.scm
Normal file
2
runtime/queries/properties/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
5
runtime/queries/properties/locals.scm
Normal file
5
runtime/queries/properties/locals.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(property
|
||||
(key) @local.definition)
|
||||
|
||||
(substitution
|
||||
(key) @local.reference)
|
||||
Loading…
Add table
Add a link
Reference in a new issue