mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -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
|
||||
(#match? @constant "^_*[A-Z][A-Z\d_]+"))
|
||||
|
||||
|
||||
(this) @constant.builtin
|
||||
|
||||
; Literals
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue