mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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
|
; Reserved Keywords
|
||||||
[
|
[
|
||||||
"after"
|
"after"
|
||||||
"and"
|
|
||||||
"catch"
|
"catch"
|
||||||
"do"
|
"do"
|
||||||
"end"
|
"end"
|
||||||
"fn"
|
"fn"
|
||||||
"in"
|
|
||||||
"not"
|
|
||||||
"or"
|
|
||||||
"rescue"
|
"rescue"
|
||||||
"when"
|
"when"
|
||||||
"else"
|
"else"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
; Operator Keywords
|
||||||
|
[
|
||||||
|
"and"
|
||||||
|
"in"
|
||||||
|
"not"
|
||||||
|
"or"
|
||||||
|
] @keyword.operator
|
||||||
|
|
||||||
; Capture Operator
|
; Capture Operator
|
||||||
(unary_operator
|
(unary_operator
|
||||||
operator: "&"
|
operator: "&"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue