aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-04-19 09:00:11 -0700
committerChristian Clason <c.clason@uni-graz.at>2024-04-19 19:12:26 +0200
commitbc808622986b0ba8eb64780b94d30cdfbd7c6a9f (patch)
tree429113f8687bed0d11a84de80e5deee9f403f6ac
parentbot(lockfile): update earthfile, http, javascript, sql, tlaplus, unison, wit (diff)
downloadnvim-treesitter-bc808622986b0ba8eb64780b94d30cdfbd7c6a9f.tar
nvim-treesitter-bc808622986b0ba8eb64780b94d30cdfbd7c6a9f.tar.gz
nvim-treesitter-bc808622986b0ba8eb64780b94d30cdfbd7c6a9f.tar.bz2
nvim-treesitter-bc808622986b0ba8eb64780b94d30cdfbd7c6a9f.tar.lz
nvim-treesitter-bc808622986b0ba8eb64780b94d30cdfbd7c6a9f.tar.xz
nvim-treesitter-bc808622986b0ba8eb64780b94d30cdfbd7c6a9f.tar.zst
nvim-treesitter-bc808622986b0ba8eb64780b94d30cdfbd7c6a9f.zip
fix(vimscript): miscellaneous fixups
- Highlights the `abort` keyword - Moves `is(not)?` from `@operator` to `@keyword.operator` - Highlights the `->` operator
-rw-r--r--queries/vim/highlights.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 2950278f9..14e5a8128 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -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)