Java highlights: Add highlight for this

This commit is contained in:
Stephan Seitz 2020-07-23 22:52:43 +02:00 committed by Thomas Vigouroux
parent 656a5c4064
commit 35837b069b
2 changed files with 10 additions and 3 deletions

View file

@ -103,7 +103,7 @@
((identifier) @constant
(#match? @constant "^_*[A-Z][A-Z\d_]+"))
(this) @constant.builtin
; Literals

View file

@ -56,8 +56,15 @@
(lambda_expression
parameters: (identifier) @definition.var) ; x -> ...
(scoped_identifier
((identifier) @definition.import))
; we need submatch!
; TODO: capture nested imports
;(import_declaration
;(scoped_identifier
;((identifier) @definition.import)))
;(import_declaration
;(scoped_identifier
;(scoped_identifier
;((identifier) @definition.import))))
(field_declaration
declarator: (variable_declarator