]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(lua): Improve 'include' and make '*expr' functions script-local
authorDoug Kearns <dougkearns@gmail.com>
Thu, 27 Feb 2025 18:17:33 +0000 (19:17 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 27 Feb 2025 18:17:33 +0000 (19:17 +0100)
commit0b8205484b703b4a5a569cd1b0ed876bbb13901f
treec002b611ad947d186686fa37f3606f831ca7963c
parent60bd140256be4f567c28c60eb84be72c19a164bd
runtime(lua): Improve 'include' and make '*expr' functions script-local

- Prevent 'include' from matching variable assignments as calls to
  require() and others.
- Use script-local functions for 'includeexpr' and 'foldexpr'.
- Formatting fixes.

closes: #16746

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