]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(lua): Update ftplugin, fix matchit block comment pattern
authorDoug Kearns <dougkearns@gmail.com>
Sun, 21 Jun 2026 12:47:20 +0000 (12:47 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 21 Jun 2026 12:47:20 +0000 (12:47 +0000)
Include the unecessary but idiomatic leading '--' in the closing block
comment token.

E.g.,
--[[
 ...
--]]

closes: #20590

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/lua.vim

index e3bb3a5ddf04b522ff1844a4eaa56a0e16035c49..cb73a24fa8d237311c4f562dcb118701ecfab427 100644 (file)
@@ -8,8 +8,7 @@
 "                      Tyler Miller <tmillr@proton.me>
 "                      Phạm Bình An <phambinhanctb2004@gmail.com>
 "                      @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\)\>:' ..
        \ '\<end\>,' ..
        \ '\<repeat\>:\<until\>,' ..
-       \ '\%(--\)\=\[\(=*\)\[:]\1]'
+       \ '--\[\(=*\)\[:\%(--\)\=]\1]'
   let b:undo_ftplugin ..= " | unlet! b:match_words b:match_ignorecase"
 endif