From: beardedsakimonkey <54521218+beardedsakimonkey@users.noreply.github.com> Date: Sun, 20 Aug 2023 19:21:51 +0000 (+0000) Subject: runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759) X-Git-Tag: v9.0.1777~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fa35b1c38b84d95b5c8e083aa742e0e0490fa1f;p=thirdparty%2Fvim.git runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759) --- diff --git a/runtime/indent/lua.vim b/runtime/indent/lua.vim index ff0f64be29..35b08d4037 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)