mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
highlights(java): Highlight spread parameters
This commit is contained in:
parent
5033d3668a
commit
eaca722783
1 changed files with 5 additions and 1 deletions
|
|
@ -19,6 +19,9 @@
|
||||||
(catch_formal_parameter
|
(catch_formal_parameter
|
||||||
name: (identifier) @parameter)
|
name: (identifier) @parameter)
|
||||||
|
|
||||||
|
(spread_parameter
|
||||||
|
(variable_declarator) @parameter) ; int... foo
|
||||||
|
|
||||||
;; Lambda parameter
|
;; Lambda parameter
|
||||||
(inferred_parameters (identifier) @parameter) ; (x,y) -> ...
|
(inferred_parameters (identifier) @parameter) ; (x,y) -> ...
|
||||||
(lambda_expression
|
(lambda_expression
|
||||||
|
|
@ -105,7 +108,7 @@
|
||||||
; Variables
|
; Variables
|
||||||
|
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#vim-match? @constant "^[A-Z_][A-Z\d_]+$"))
|
(#match? @constant "^[A-Z_][A-Z\d_]+$"))
|
||||||
|
|
||||||
(this) @variable.builtin
|
(this) @variable.builtin
|
||||||
|
|
||||||
|
|
@ -205,6 +208,7 @@
|
||||||
[
|
[
|
||||||
";"
|
";"
|
||||||
"."
|
"."
|
||||||
|
"..."
|
||||||
","
|
","
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue