chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -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_]*$"))

View file

@ -1,2 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))
(#set! injection.language "comment"))

View file

@ -1,3 +1,5 @@
(property (key) @local.definition)
(property
(key) @local.definition)
(substitution (key) @local.reference)
(substitution
(key) @local.reference)