highlights(java): Highlight spread parameters

This commit is contained in:
Stephan Seitz 2021-02-19 22:35:23 +01:00 committed by Stephan Seitz
parent 5033d3668a
commit eaca722783

View file

@ -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