mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue