mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Javascript unary expression (#712)
* javascript: Move unary_expression matching. * javascript: Move unary_expression matching. * javascript: Update unary to operator * javascript: Update qnary to be more specific
This commit is contained in:
parent
96e86eab80
commit
ff1c77b206
2 changed files with 1 additions and 2 deletions
|
|
@ -185,6 +185,7 @@
|
|||
|
||||
(binary_expression "/" @operator)
|
||||
(ternary_expression ["?" ":"] @operator)
|
||||
(unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator)
|
||||
|
||||
"(" @punctuation.bracket
|
||||
")" @punctuation.bracket
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@
|
|||
(pair
|
||||
":" @punctuation.delimiter)
|
||||
|
||||
(unary_expression) @punctuation.special
|
||||
|
||||
(property_signature "?" @punctuation.special)
|
||||
(optional_parameter "?" @punctuation.special)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue