From bc808622986b0ba8eb64780b94d30cdfbd7c6a9f Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Fri, 19 Apr 2024 09:00:11 -0700 Subject: [PATCH] fix(vimscript): miscellaneous fixups - Highlights the `abort` keyword - Moves `is(not)?` from `@operator` to `@keyword.operator` - Highlights the `->` operator --- queries/vim/highlights.scm | 9 +++++++-- 1 file 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)