diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-04-19 09:00:11 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-19 19:12:26 +0200 |
| commit | bc808622986b0ba8eb64780b94d30cdfbd7c6a9f (patch) | |
| tree | 429113f8687bed0d11a84de80e5deee9f403f6ac | |
| parent | bot(lockfile): update earthfile, http, javascript, sql, tlaplus, unison, wit (diff) | |
| download | nvim-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.scm | 9 |
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) |
