summaryrefslogtreecommitdiff
path: root/runtime/queries/javascript
diff options
context:
space:
mode:
authorPhilipp Mildenberger2022-07-27 18:56:58 +0000
committerGitHub2022-07-27 18:56:58 +0000
commitbf74a4652d97d7acb82e84467098e5b39f83827a (patch)
tree6422f2fac4a0a48f682685de907cccbb121bf6c6 /runtime/queries/javascript
parent85a5df03911be8f7845921a503ffb707bfc6bab4 (diff)
JS/TS highlighting improvements (#3219)
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)
+
[
"("
")"