Highlight ? and : in ternary expressions as operator in JavaScript, TypeScript, and TSX (#20573)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
狐狸
2024-11-16 13:42:10 +02:00
committed by GitHub
parent 792c1e4710
commit 33f09bad60
3 changed files with 21 additions and 0 deletions
@@ -150,6 +150,13 @@
"}"
] @punctuation.bracket
(ternary_expression
[
"?"
":"
] @operator
)
[
"as"
"async"
+7
View File
@@ -155,6 +155,13 @@
"}"
] @punctuation.bracket
(ternary_expression
[
"?"
":"
] @operator
)
[
"as"
"async"
@@ -156,6 +156,13 @@
"}"
] @punctuation.bracket
(ternary_expression
[
"?"
":"
] @operator
)
[
"as"
"async"