fix(vimscript): miscellaneous fixups

- Highlights the `abort` keyword
- Moves `is(not)?` from `@operator` to `@keyword.operator`
- Highlights the `->` operator
This commit is contained in:
Riley Bruins 2024-04-19 09:00:11 -07:00 committed by Christian Clason
parent fea5808a58
commit bc80862298

View file

@ -126,6 +126,7 @@
"view" "view"
"eval" "eval"
"sign" "sign"
"abort"
] @keyword ] @keyword
(map_statement (map_statement
@ -277,8 +278,6 @@
"/" "/"
"%" "%"
".." ".."
"is"
"isnot"
"==" "=="
"!=" "!="
">" ">"
@ -297,9 +296,15 @@
"..=" "..="
"<<" "<<"
"=<<" "=<<"
"->"
(match_case) (match_case)
] @operator ] @operator
[
"is"
"isnot"
] @keyword.operator
; Some characters have different meanings based on the context ; Some characters have different meanings based on the context
(unary_operation (unary_operation
"!" @operator) "!" @operator)