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:
parent
792c1e4710
commit
33f09bad60
3 changed files with 21 additions and 0 deletions
|
@ -150,6 +150,13 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(ternary_expression
|
||||||
|
[
|
||||||
|
"?"
|
||||||
|
":"
|
||||||
|
] @operator
|
||||||
|
)
|
||||||
|
|
||||||
[
|
[
|
||||||
"as"
|
"as"
|
||||||
"async"
|
"async"
|
||||||
|
|
|
@ -155,6 +155,13 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(ternary_expression
|
||||||
|
[
|
||||||
|
"?"
|
||||||
|
":"
|
||||||
|
] @operator
|
||||||
|
)
|
||||||
|
|
||||||
[
|
[
|
||||||
"as"
|
"as"
|
||||||
"async"
|
"async"
|
||||||
|
|
|
@ -156,6 +156,13 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(ternary_expression
|
||||||
|
[
|
||||||
|
"?"
|
||||||
|
":"
|
||||||
|
] @operator
|
||||||
|
)
|
||||||
|
|
||||||
[
|
[
|
||||||
"as"
|
"as"
|
||||||
"async"
|
"async"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue