diff options
author | Christian Clason <c.clason@uni-graz.at> | 2025-04-06 17:49:48 +0200 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2025-04-07 10:19:00 +0200 |
commit | 1e9e523521ca296151630333ce8424ecc2aabb17 (patch) | |
tree | 1e50ad9cae133af1ccdae23bc7b5629f8bcc840e | |
parent | 5e192dbce2bee591eb94fb682213cbee3468d6d4 (diff) | |
download | rneovim-1e9e523521ca296151630333ce8424ecc2aabb17.tar.gz rneovim-1e9e523521ca296151630333ce8424ecc2aabb17.tar.bz2 rneovim-1e9e523521ca296151630333ce8424ecc2aabb17.zip |
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 <Konfekt@users.noreply.github.com>
-rw-r--r-- | runtime/ftplugin/lua.vim | 27 |
1 files changed, 14 insertions, 13 deletions
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 <dougkearns@gmail.com> -" Previous Maintainer: Max Ischenko <mfi@ukr.net> -" Contributor: Dorai Sitaram <ds26@gte.com> -" C.D. MacEachern <craig.daniel.maceachern@gmail.com> -" Phạm Bình An <phambinhanctb2004@gmail.com> -" Last Change: 2025 Feb 27 +" Language: Lua +" Maintainer: Doug Kearns <dougkearns@gmail.com> +" Previous Maintainer: Max Ischenko <mfi@ukr.net> +" Contributor: Dorai Sitaram <ds26@gte.com> +" C.D. MacEachern <craig.daniel.maceachern@gmail.com> +" Tyler Miller <tmillr@proton.me> +" Phạm Bình An <phambinhanctb2004@gmail.com> +" @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\)\>:' .. - \ '\<end\>,' .. - \ '\<repeat\>:\<until\>,' .. - \ '\%(--\)\=\[\(=*\)\[:]\1]' + \ '\<\%(do\|function\|if\)\>:' .. + \ '\<\%(return\|else\|elseif\)\>:' .. + \ '\<end\>,' .. + \ '\<repeat\>:\<until\>,' .. + \ '\%(--\)\=\[\(=*\)\[:]\1]' let b:undo_ftplugin ..= " | unlet! b:match_words b:match_ignorecase" endif |