mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
highlights(java): Highlight fields (members and member access) (#1107)
This commit is contained in:
parent
88ac3d2365
commit
2331a36693
1 changed files with 8 additions and 0 deletions
|
|
@ -98,6 +98,14 @@
|
|||
scope: (identifier) @type)
|
||||
(#match? @type "^[A-Z]"))
|
||||
|
||||
; Fields
|
||||
|
||||
(field_declaration
|
||||
declarator: (variable_declarator) @field)
|
||||
|
||||
(field_access
|
||||
field: (identifier) @field)
|
||||
|
||||
[
|
||||
(boolean_type)
|
||||
(integral_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue