mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
|
] @operator
|
||||||
|
|
||||||
(binary_expression "/" @operator)
|
(binary_expression "/" @operator)
|
||||||
(ternary_expression ["?" ":"] @operator)
|
(ternary_expression ["?" ":"] @conditional)
|
||||||
(unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator)
|
(unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator)
|
||||||
|
|
||||||
"(" @punctuation.bracket
|
"(" @punctuation.bracket
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
(else_clause
|
(else_clause
|
||||||
["else"] @conditional)
|
["else"] @conditional)
|
||||||
(ternary_expression
|
(ternary_expression
|
||||||
["?" ":"] @operator)
|
["?" ":"] @conditional)
|
||||||
|
|
||||||
(function_definition ["function" "end"] @keyword.function)
|
(function_definition ["function" "end"] @keyword.function)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue