aboutsummaryrefslogtreecommitdiffstats
path: root/queries/javascript/highlights.scm
diff options
context:
space:
mode:
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