mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
name: (identifier) @parameter)
|
||||
|
||||
(spread_parameter
|
||||
(variable_declarator) @parameter) ; int... foo
|
||||
|
||||
;; Lambda parameter
|
||||
(inferred_parameters (identifier) @parameter) ; (x,y) -> ...
|
||||
(lambda_expression
|
||||
|
|
@ -105,7 +108,7 @@
|
|||
; Variables
|
||||
|
||||
((identifier) @constant
|
||||
(#vim-match? @constant "^[A-Z_][A-Z\d_]+$"))
|
||||
(#match? @constant "^[A-Z_][A-Z\d_]+$"))
|
||||
|
||||
(this) @variable.builtin
|
||||
|
||||
|
|
@ -205,6 +208,7 @@
|
|||
[
|
||||
";"
|
||||
"."
|
||||
"..."
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue