aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/javascript')
-rw-r--r--runtime/queries/javascript/highlights.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/queries/javascript/highlights.scm b/runtime/queries/javascript/highlights.scm
index 9a759081..60336c3b 100644
--- a/runtime/queries/javascript/highlights.scm
+++ b/runtime/queries/javascript/highlights.scm
@@ -66,6 +66,8 @@
;-----------
(property_identifier) @variable.other.member
+(shorthand_property_identifier) @variable.other.member
+(shorthand_property_identifier_pattern) @variable.other.member
; Literals
;---------
@@ -149,8 +151,11 @@
"&&="
"||="
"??="
+ "..."
] @operator
+(ternary_expression ["?" ":"] @operator)
+
[
"("
")"