runtime(kitty): Fix regex for kittyMapSeq region
Commit:
https://github.com/vim/vim/commit/8eceebae710bdbfc8d2648cae8dbe01302dd468b
Author: bbnolauv <[email protected]>
Date: Wed Jun 3 17:52:37 2026 +0000
runtime(kitty): Fix regex for kittyMapSeq region
closes: https://github.com/vim/vim/issues/20422
Signed-off-by: bbnolauv <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/kitty.vim b/runtime/syntax/kitty.vim
index 6d37b664d..825ef64d1 100644
--- a/runtime/syntax/kitty.vim
+++ b/runtime/syntax/kitty.vim
@@ -2,6 +2,7 @@
" Language: Kitty configuration files
" Maintainer: MD. Mouinul Hossain Shawon <mdmouinulhossainshawon [at]
gmail.com>
" Last Change: Tue Sep 16 19:10:59 +06 2025
+" 2026 Jun 02 by Vim project: update kittyMapSeq highlight to match
end-of-line #20422
if exists("b:current_syntax")
finish
@@ -46,7 +47,7 @@ syn keyword kittyMapName nextgroup=kittyMapValue skipwhite
contained map
syn region kittyMapValue start="\S" skip="[
][ ]*\" end="\ze[
]" contains=kittyMapSeq,kittyMapAction contained
syn region kittyMapAction start="\S" skip="[
][ ]*\" end="\ze[
]" contains=@kittyPrimitive contained
-syn region kittyMapSeq start="\S" end="\ze\s\|^\ze[ ]*\"
nextgroup=kittyMapAction,kittyMouseMapType skipwhite
contains=kittyCtrl,kittyAlt,kittyShift,kittySuper,kittyAnd,kittyWith,kittyKey
contained
+syn region kittyMapSeq start="\S" end="\ze\s\|^\ze[ ]*\\|\ze$"
nextgroup=kittyMapAction,kittyMouseMapType skipwhite
contains=kittyCtrl,kittyAlt,kittyShift,kittySuper,kittyAnd,kittyWith,kittyKey
contained
" Mouse shortcut """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Format: `mouse_map <keys> <type> <grabbed> <action>?`
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1wUpsq-003nVU-85%40256bit.org.