mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
95
runtime/queries/groovy/highlights.scm
Normal file
95
runtime/queries/groovy/highlights.scm
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
(unit
|
||||
(identifier) @variable)
|
||||
(string
|
||||
(identifier) @variable)
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
(block
|
||||
(unit
|
||||
(identifier) @namespace))
|
||||
|
||||
(func
|
||||
(identifier) @function)
|
||||
|
||||
(number) @number
|
||||
|
||||
((identifier) @boolean
|
||||
(#any-of? @boolean "true" "false" "True" "False"))
|
||||
|
||||
((identifier) @constant
|
||||
(#lua-match? @constant "^[A-Z][A-Z%d_]*$"))
|
||||
|
||||
((identifier) @constant.builtin
|
||||
(#eq? @constant.builtin "null"))
|
||||
|
||||
((identifier) @type
|
||||
(#any-of? @type
|
||||
"String"
|
||||
"Map"
|
||||
"Object"
|
||||
"Boolean"
|
||||
"Integer"
|
||||
"List"))
|
||||
|
||||
((identifier) @function.builtin
|
||||
(#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"))
|
||||
|
||||
((identifier) @type.qualifier
|
||||
(#any-of? @type.qualifier
|
||||
"abstract"
|
||||
"protected"
|
||||
"private"
|
||||
"public"))
|
||||
|
||||
((identifier) @exception
|
||||
(#any-of? @exception
|
||||
"throw"
|
||||
"finally"
|
||||
"try"
|
||||
"catch"))
|
||||
|
||||
(string) @string
|
||||
|
||||
[
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @comment @spell
|
||||
|
||||
((block_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
|
||||
|
||||
((line_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^///[^/]"))
|
||||
|
||||
((line_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^///$"))
|
||||
|
||||
[
|
||||
(operators)
|
||||
(leading_key)
|
||||
] @operator
|
||||
|
||||
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|
||||
5
runtime/queries/groovy/injections.scm
Normal file
5
runtime/queries/groovy/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
((block_comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((line_comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue