aboutsummaryrefslogtreecommitdiffstats
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
parent[cmake]: Add highlighting for `set` command (diff)
downloadnvim-treesitter-398ec42d3079ea1f24af10e993374caa00828e16.tar
nvim-treesitter-398ec42d3079ea1f24af10e993374caa00828e16.tar.gz
nvim-treesitter-398ec42d3079ea1f24af10e993374caa00828e16.tar.bz2
nvim-treesitter-398ec42d3079ea1f24af10e993374caa00828e16.tar.lz
nvim-treesitter-398ec42d3079ea1f24af10e993374caa00828e16.tar.xz
nvim-treesitter-398ec42d3079ea1f24af10e993374caa00828e16.tar.zst
nvim-treesitter-398ec42d3079ea1f24af10e993374caa00828e16.zip
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 c52274e54..f4580ad6f 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
;--------------------