summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordelphinus <me@delphinus.dev>2021-08-31 10:41:19 +0900
committerStephan Seitz <stephan.seitz@fau.de>2021-09-09 23:00:05 +0200
commit398ec42d3079ea1f24af10e993374caa00828e16 (patch)
treece8e688cd7a258af87b580302a260a2d01efed30
parent16f4833b57d49f1be534cb770e4a92a09eb63d00 (diff)
Set property color for destructuring assignment
-rw-r--r--queries/ecma/highlights.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm
index c52274e5..f4580ad6 100644
--- a/queries/ecma/highlights.scm
+++ b/queries/ecma/highlights.scm
@@ -12,6 +12,10 @@
(property_identifier) @property
(shorthand_property_identifier) @property
+(variable_declarator
+ name: (object_pattern
+ (shorthand_property_identifier_pattern))) @property
+
; Special identifiers
;--------------------