mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -4,25 +4,41 @@
|
|||
|
||||
(value) @string
|
||||
|
||||
(value (escape) @string.escape)
|
||||
(value
|
||||
(escape) @string.escape)
|
||||
|
||||
((value) @boolean
|
||||
(#any-of? @boolean "true" "false"))
|
||||
(#any-of? @boolean "true" "false"))
|
||||
|
||||
((value) @number
|
||||
(#lua-match? @number "^%d+$"))
|
||||
(#lua-match? @number "^%d+$"))
|
||||
|
||||
(index) @number
|
||||
|
||||
(property [ "=" ":" ] @operator)
|
||||
(property
|
||||
[
|
||||
"="
|
||||
":"
|
||||
] @operator)
|
||||
|
||||
[ "${" "}" ] @punctuation.special
|
||||
[
|
||||
"${"
|
||||
"}"
|
||||
] @punctuation.special
|
||||
|
||||
(substitution ":" @punctuation.special)
|
||||
(substitution
|
||||
":" @punctuation.special)
|
||||
|
||||
[ "[" "]" ] @punctuation.bracket
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[ "." "\\" ] @punctuation.delimiter
|
||||
[
|
||||
"."
|
||||
"\\"
|
||||
] @punctuation.delimiter
|
||||
|
||||
((substitution (key) @constant)
|
||||
(#lua-match? @constant "^[A-Z_][A-Z0-9_]*$"))
|
||||
((substitution
|
||||
(key) @constant)
|
||||
(#lua-match? @constant "^[A-Z_][A-Z0-9_]*$"))
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
(property (key) @local.definition)
|
||||
(property
|
||||
(key) @local.definition)
|
||||
|
||||
(substitution (key) @local.reference)
|
||||
(substitution
|
||||
(key) @local.reference)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue