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

@ -1,5 +1,6 @@
(unit
(identifier) @variable)
(string
(identifier) @variable)
@ -24,52 +25,19 @@
(#eq? @constant.builtin "null"))
((identifier) @type
(#any-of? @type
"String"
"Map"
"Object"
"Boolean"
"Integer"
"List"))
(#any-of? @type "String" "Map" "Object" "Boolean" "Integer" "List"))
((identifier) @function.builtin
(#any-of? @function.builtin
"void"
"id"
"version"
"apply"
"implementation"
"testImplementation"
"androidTestImplementation"
"debugImplementation"))
(#any-of? @function.builtin "void" "id" "version" "apply" "implementation" "testImplementation" "androidTestImplementation" "debugImplementation"))
((identifier) @keyword
(#any-of? @keyword
"static"
"class"
"def"
"import"
"package"
"assert"
"extends"
"implements"
"instanceof"
"interface"
"new"))
(#any-of? @keyword "static" "class" "def" "import" "package" "assert" "extends" "implements" "instanceof" "interface" "new"))
((identifier) @type.qualifier
(#any-of? @type.qualifier
"abstract"
"protected"
"private"
"public"))
(#any-of? @type.qualifier "abstract" "protected" "private" "public"))
((identifier) @keyword.exception
(#any-of? @keyword.exception
"throw"
"finally"
"try"
"catch"))
(#any-of? @keyword.exception "throw" "finally" "try" "catch"))
(string) @string
@ -92,4 +60,11 @@
(leading_key)
] @operator
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket

View file

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