mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -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
|
|
@ -76,13 +76,16 @@
|
|||
((value_name) @function.builtin
|
||||
(#any-of? @function.builtin "raise" "raise_notrace" "failwith" "invalid_arg"))
|
||||
|
||||
; Properties
|
||||
;-----------
|
||||
; Fields
|
||||
;-------
|
||||
[
|
||||
(label_name)
|
||||
(field_name)
|
||||
(instance_variable_name)
|
||||
] @property
|
||||
] @variable.member
|
||||
|
||||
; Labels
|
||||
; ------
|
||||
(label_name) @label
|
||||
|
||||
; Constants
|
||||
;----------
|
||||
|
|
@ -306,7 +309,7 @@
|
|||
|
||||
; Attributes
|
||||
;-----------
|
||||
(attribute_id) @property
|
||||
(attribute_id) @attribute
|
||||
|
||||
; Comments
|
||||
;---------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue