runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759)
Commit: https://github.com/vim/vim/commit/9fa35b1c38b84d95b5c8e083aa742e0e0490fa1f Author: beardedsakimonkey <[email protected]> Date: Sun Aug 20 19:21:51 2023 +0000 runtime(lua): fix lua indentation of non-lowercase "keywords" (https://github.com/vim/vim/issues/11759) diff --git a/runtime/indent/lua.vim b/runtime/indent/lua.vim index ff0f64be2..35b08d403 100644 --- a/runtime/indent/lua.vim +++ b/runtime/indent/lua.vim @@ -27,6 +27,16 @@ if exists("*GetLuaIndent") endif function! GetLuaIndent() + let ignorecase_save = &ignorecase + try + let &ignorecase = 0 + return GetLuaIndentIntern() + finally + let &ignorecase = ignorecase_save + endtry +endfunction + +function! GetLuaIndentIntern() " Find a non-blank line above the current line. let prevlnum = prevnonblank(v:lnum - 1) -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1qXo7j-00AvSd-Hx%40256bit.org.
