mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Highlight and,or,not,in as @keyword.operator
This commit is contained in:
parent
6bd551d3b7
commit
638891d401
1 changed files with 8 additions and 4 deletions
|
|
@ -150,19 +150,23 @@
|
|||
; Reserved Keywords
|
||||
[
|
||||
"after"
|
||||
"and"
|
||||
"catch"
|
||||
"do"
|
||||
"end"
|
||||
"fn"
|
||||
"in"
|
||||
"not"
|
||||
"or"
|
||||
"rescue"
|
||||
"when"
|
||||
"else"
|
||||
] @keyword
|
||||
|
||||
; Operator Keywords
|
||||
[
|
||||
"and"
|
||||
"in"
|
||||
"not"
|
||||
"or"
|
||||
] @keyword.operator
|
||||
|
||||
; Capture Operator
|
||||
(unary_operator
|
||||
operator: "&"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue