mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(highlights): always highlight ternary operator as operator
This commit is contained in:
parent
41ed83ffc7
commit
9cfd3377e3
2 changed files with 2 additions and 2 deletions
|
|
@ -205,7 +205,7 @@
|
|||
] @operator
|
||||
|
||||
(binary_expression "/" @operator)
|
||||
(ternary_expression ["?" ":"] @operator)
|
||||
(ternary_expression ["?" ":"] @conditional)
|
||||
(unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator)
|
||||
|
||||
"(" @punctuation.bracket
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@
|
|||
(else_clause
|
||||
["else"] @conditional)
|
||||
(ternary_expression
|
||||
["?" ":"] @operator)
|
||||
["?" ":"] @conditional)
|
||||
|
||||
(function_definition ["function" "end"] @keyword.function)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue