mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Java highlights: Add highlight for this
This commit is contained in:
parent
656a5c4064
commit
35837b069b
2 changed files with 10 additions and 3 deletions
|
|
@ -103,7 +103,7 @@
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#match? @constant "^_*[A-Z][A-Z\d_]+"))
|
(#match? @constant "^_*[A-Z][A-Z\d_]+"))
|
||||||
|
|
||||||
|
(this) @constant.builtin
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,15 @@
|
||||||
(lambda_expression
|
(lambda_expression
|
||||||
parameters: (identifier) @definition.var) ; x -> ...
|
parameters: (identifier) @definition.var) ; x -> ...
|
||||||
|
|
||||||
(scoped_identifier
|
; we need submatch!
|
||||||
((identifier) @definition.import))
|
; TODO: capture nested imports
|
||||||
|
;(import_declaration
|
||||||
|
;(scoped_identifier
|
||||||
|
;((identifier) @definition.import)))
|
||||||
|
;(import_declaration
|
||||||
|
;(scoped_identifier
|
||||||
|
;(scoped_identifier
|
||||||
|
;((identifier) @definition.import))))
|
||||||
|
|
||||||
(field_declaration
|
(field_declaration
|
||||||
declarator: (variable_declarator
|
declarator: (variable_declarator
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue