mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
fix(highlights): improve member/property distinction
This commit is contained in:
parent
2f38c36294
commit
fa38f4e6f9
34 changed files with 106 additions and 95 deletions
|
|
@ -229,10 +229,10 @@
|
|||
; Properties
|
||||
(property_implementation
|
||||
"@synthesize"
|
||||
(identifier) @property)
|
||||
(identifier) @variable.member)
|
||||
|
||||
((identifier) @property
|
||||
(#has-ancestor? @property struct_declaration))
|
||||
((identifier) @variable.member
|
||||
(#has-ancestor? @variable.member struct_declaration))
|
||||
|
||||
; Parameters
|
||||
(method_parameter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue