Skip to content

Commit 9fa35b1

Browse files
runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759)
1 parent e71e9d9 commit 9fa35b1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

runtime/indent/lua.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ if exists("*GetLuaIndent")
2727
endif
2828

2929
function! GetLuaIndent()
30+
let ignorecase_save = &ignorecase
31+
try
32+
let &ignorecase = 0
33+
return GetLuaIndentIntern()
34+
finally
35+
let &ignorecase = ignorecase_save
36+
endtry
37+
endfunction
38+
39+
function! GetLuaIndentIntern()
3040
" Find a non-blank line above the current line.
3141
let prevlnum = prevnonblank(v:lnum - 1)
3242

0 commit comments

Comments
 (0)