fix(highlights): always highlight ternary operator as operator

This commit is contained in:
Thomas Vigouroux 2021-04-22 17:43:14 +02:00
parent 41ed83ffc7
commit 9cfd3377e3
2 changed files with 2 additions and 2 deletions

View file

@ -205,7 +205,7 @@
] @operator
(binary_expression "/" @operator)
(ternary_expression ["?" ":"] @operator)
(ternary_expression ["?" ":"] @conditional)
(unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator)
"(" @punctuation.bracket

View file

@ -119,7 +119,7 @@
(else_clause
["else"] @conditional)
(ternary_expression
["?" ":"] @operator)
["?" ":"] @conditional)
(function_definition ["function" "end"] @keyword.function)