From db033f72396ba3b96b0988626a5bfc7800855363 Mon Sep 17 00:00:00 2001 From: Steven Sojka Date: Tue, 26 Jan 2021 07:54:49 -0600 Subject: feat(javascript): move shorthand prop to property --- queries/javascript/highlights.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'queries/javascript') 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 -- cgit v1.2.3-70-g09d2