aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/ecma/highlights.scm21
1 files changed, 17 insertions, 4 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm
index f5f2d5614..233b20e00 100644
--- a/queries/ecma/highlights.scm
+++ b/queries/ecma/highlights.scm
@@ -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
;---------
[