From 131f9f73ace15e3ccd026a5328ae7c3062e8a3f6 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 21 Jun 2026 21:40:03 +0800 Subject: [PATCH] vim-patch:98bf999: runtime(lua): Update ftplugin, fix matchit block comment pattern (#40349) Include the unecessary but idiomatic leading '--' in the closing block comment token. E.g., --[[ ... --]] closes: vim/vim#20590 https://github.com/vim/vim/commit/98bf999d583118f73a8db7f808b5a22c1d38abd5 Co-authored-by: Doug Kearns --- runtime/ftplugin/lua.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim index c6d2af8d37..7394960d7d 100644 --- a/runtime/ftplugin/lua.vim +++ b/runtime/ftplugin/lua.vim @@ -8,8 +8,7 @@ " Tyler Miller " Phạm Bình An " @konfekt -" Last Change: 2025 Apr 04 -" 2025 May 06 by Vim Project update 'path' setting #17267 +" Last Change: 2026 Jun 20 if exists("b:did_ftplugin") finish @@ -49,7 +48,7 @@ if exists("loaded_matchit") && !exists("b:match_words") \ '\<\%(return\|else\|elseif\)\>:' .. \ '\,' .. \ '\:\,' .. - \ '\%(--\)\=\[\(=*\)\[:]\1]' + \ '--\[\(=*\)\[:\%(--\)\=]\1]' let b:undo_ftplugin ..= " | unlet! b:match_words b:match_ignorecase" endif