diff options
author | beardedsakimonkey <54521218+beardedsakimonkey@users.noreply.github.com> | 2023-08-20 19:21:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-20 21:21:51 +0200 |
commit | 9fa35b1c38b84d95b5c8e083aa742e0e0490fa1f (patch) | |
tree | e3dfee26e32cb533d3a79559e0244c4c08698572 /runtime/indent | |
parent | e71e9d9ad368f83162a9c08217a9faf9bda909a7 (diff) |
runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759)
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/lua.vim | 10 |
1 files changed, 10 insertions, 0 deletions
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) |