Commit: runtime(kitty): Fix regex for kittyMapSeq region

0 views
Skip to first unread message

Christian Brabandt

unread,
Jun 3, 2026, 2:00:12 PM (yesterday) Jun 3
to vim...@googlegroups.com
runtime(kitty): Fix regex for kittyMapSeq region

Commit: https://github.com/vim/vim/commit/8eceebae710bdbfc8d2648cae8dbe01302dd468b
Author: bbnolauv <86621528...@users.noreply.github.com>
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 <86621528...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

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>?`
Reply all
Reply to author
Forward
0 new messages