mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04: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"
|
"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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue