feat(ecma): highlight decorator and destructuring

This commit is contained in:
Ananda Umamil 2024-02-09 20:42:08 +07:00 committed by Christian Clason
parent 817ca60370
commit baf4581159

View file

@ -12,10 +12,12 @@
(private_property_identifier) @variable.member
(variable_declarator
name:
(object_pattern
(shorthand_property_identifier_pattern))) @variable
(object_pattern
(shorthand_property_identifier_pattern) @variable)
(object_pattern
(object_assignment_pattern
(shorthand_property_identifier_pattern) @variable))
; Special identifiers
;--------------------
@ -138,6 +140,17 @@
(call_expression
(identifier) @attribute))
(decorator
"@" @attribute
(member_expression
(property_identifier) @attribute))
(decorator
"@" @attribute
(call_expression
(member_expression
(property_identifier) @attribute)))
; Literals
;---------
[