mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
fix(vimscript): miscellaneous fixups
- Highlights the `abort` keyword - Moves `is(not)?` from `@operator` to `@keyword.operator` - Highlights the `->` operator
This commit is contained in:
parent
fea5808a58
commit
bc80862298
1 changed files with 7 additions and 2 deletions
|
@ -126,6 +126,7 @@
|
|||
"view"
|
||||
"eval"
|
||||
"sign"
|
||||
"abort"
|
||||
] @keyword
|
||||
|
||||
(map_statement
|
||||
|
@ -277,8 +278,6 @@
|
|||
"/"
|
||||
"%"
|
||||
".."
|
||||
"is"
|
||||
"isnot"
|
||||
"=="
|
||||
"!="
|
||||
">"
|
||||
|
@ -297,9 +296,15 @@
|
|||
"..="
|
||||
"<<"
|
||||
"=<<"
|
||||
"->"
|
||||
(match_case)
|
||||
] @operator
|
||||
|
||||
[
|
||||
"is"
|
||||
"isnot"
|
||||
] @keyword.operator
|
||||
|
||||
; Some characters have different meanings based on the context
|
||||
(unary_operation
|
||||
"!" @operator)
|
||||
|
|
Loading…
Reference in a new issue