From: Doug Kearns Date: Sun, 21 Jun 2026 12:47:20 +0000 (+0000) Subject: runtime(lua): Update ftplugin, fix matchit block comment pattern X-Git-Tag: v9.2.0682~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98bf999d583118f73a8db7f808b5a22c1d38abd5;p=thirdparty%2Fvim.git runtime(lua): Update ftplugin, fix matchit block comment pattern Include the unecessary but idiomatic leading '--' in the closing block comment token. E.g., --[[ ... --]] closes: #20590 Signed-off-by: Doug Kearns Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim index e3bb3a5ddf..cb73a24fa8 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