From 1e9e523521ca296151630333ce8424ecc2aabb17 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 6 Apr 2025 17:49:48 +0200 Subject: vim-patch:00b927b: runtime(lua): improve foldexpr, add vim9 script version closes: vim/vim#17049 https://github.com/vim/vim/commit/00b927b295c11e61942d34f7e1c384f1c6af9513 Co-authored-by: Konfekt --- runtime/ftplugin/lua.vim | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'runtime/ftplugin/lua.vim') diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim index 57c5887a86..945af2dbac 100644 --- a/runtime/ftplugin/lua.vim +++ b/runtime/ftplugin/lua.vim @@ -1,11 +1,12 @@ -" Vim filetype plugin file. -" Language: Lua -" Maintainer: Doug Kearns -" Previous Maintainer: Max Ischenko -" Contributor: Dorai Sitaram -" C.D. MacEachern -" Phạm Bình An -" Last Change: 2025 Feb 27 +" Language: Lua +" Maintainer: Doug Kearns +" Previous Maintainer: Max Ischenko +" Contributor: Dorai Sitaram +" C.D. MacEachern +" Tyler Miller +" Phạm Bình An +" @konfekt +" Last Change: 2025 Apr 04 if exists("b:did_ftplugin") finish @@ -40,11 +41,11 @@ let b:undo_ftplugin = "setl cms< com< def< fo< inc< inex< sua<" if exists("loaded_matchit") && !exists("b:match_words") let b:match_ignorecase = 0 let b:match_words = - \ '\<\%(do\|function\|if\)\>:' .. - \ '\<\%(return\|else\|elseif\)\>:' .. - \ '\,' .. - \ '\:\,' .. - \ '\%(--\)\=\[\(=*\)\[:]\1]' + \ '\<\%(do\|function\|if\)\>:' .. + \ '\<\%(return\|else\|elseif\)\>:' .. + \ '\,' .. + \ '\:\,' .. + \ '\%(--\)\=\[\(=*\)\[:]\1]' let b:undo_ftplugin ..= " | unlet! b:match_words b:match_ignorecase" endif -- cgit