aboutsummaryrefslogtreecommitdiffstats
path: root/queries/javascript/highlights.scm
diff options
context:
space:
mode:
authorSteven Sojka <Steven.Sojka@tdameritrade.com>2021-01-26 07:54:49 -0600
committerThomas Vigouroux <tomvig38@gmail.com>2021-01-26 15:00:35 +0100
commitdb033f72396ba3b96b0988626a5bfc7800855363 (patch)
treec47825f0489843bfdb123fedb6f822ce3e8ccb0c /queries/javascript/highlights.scm
parentHighlight ruby symbols as @property (diff)
downloadnvim-treesitter-db033f72396ba3b96b0988626a5bfc7800855363.tar
nvim-treesitter-db033f72396ba3b96b0988626a5bfc7800855363.tar.gz
nvim-treesitter-db033f72396ba3b96b0988626a5bfc7800855363.tar.bz2
nvim-treesitter-db033f72396ba3b96b0988626a5bfc7800855363.tar.lz
nvim-treesitter-db033f72396ba3b96b0988626a5bfc7800855363.tar.xz
nvim-treesitter-db033f72396ba3b96b0988626a5bfc7800855363.tar.zst
nvim-treesitter-db033f72396ba3b96b0988626a5bfc7800855363.zip
feat(javascript): move shorthand prop to property
Diffstat (limited to 'queries/javascript/highlights.scm')
-rw-r--r--queries/javascript/highlights.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/queries/javascript/highlights.scm b/queries/javascript/highlights.scm
index 09d172b6b..57cabd93e 100644
--- a/queries/javascript/highlights.scm
+++ b/queries/javascript/highlights.scm
@@ -11,13 +11,11 @@
;-----------
(property_identifier) @property
-(shorthand_property_identifier) @variable
+(shorthand_property_identifier) @property
; Special identifiers
;--------------------
-(identifier) @variable
-
((identifier) @constructor
(#match? @constructor "^[A-Z]"))
@@ -109,8 +107,8 @@
(identifier) @parameter))
; a => null
-(variable_declarator
- value: (arrow_function
+(variable_declarator
+ value: (arrow_function
parameter: (identifier) @parameter))
; optional parameters