fix(highlights): improve member/property distinction

This commit is contained in:
ObserverOfTime 2024-01-10 18:05:37 +02:00 committed by Christian Clason
parent 2f38c36294
commit fa38f4e6f9
34 changed files with 106 additions and 95 deletions

View file

@ -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
;---------