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 19:42:10 +08:00 committed by GitHub
parent 792c1e4710
commit 33f09bad60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 0 deletions

View file

@ -150,6 +150,13 @@
"}"
] @punctuation.bracket
(ternary_expression
[
"?"
":"
] @operator
)
[
"as"
"async"

View file

@ -155,6 +155,13 @@
"}"
] @punctuation.bracket
(ternary_expression
[
"?"
":"
] @operator
)
[
"as"
"async"

View file

@ -156,6 +156,13 @@
"}"
] @punctuation.bracket
(ternary_expression
[
"?"
":"
] @operator
)
[
"as"
"async"