]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759)
authorbeardedsakimonkey <54521218+beardedsakimonkey@users.noreply.github.com>
Sun, 20 Aug 2023 19:21:51 +0000 (19:21 +0000)
committerGitHub <noreply@github.com>
Sun, 20 Aug 2023 19:21:51 +0000 (21:21 +0200)
runtime/indent/lua.vim

index ff0f64be291e6822790d11c9a16f283d5d53851b..35b08d4037f0162c59df3f2a256ec366526efb28 100644 (file)
@@ -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)