aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-08-21 09:52:42 +0900
committerChristian Clason <c.clason@uni-graz.at>2023-08-21 20:32:28 +0900
commitc9764bf331b4238ea60af382b013e0d058318d58 (patch)
tree6b1ae31587d49e547c58221388ce9be74e55b425
parent60037feb56c6f03443b93890a2506e290425805a (diff)
downloadrneovim-c9764bf331b4238ea60af382b013e0d058318d58.tar.gz
rneovim-c9764bf331b4238ea60af382b013e0d058318d58.tar.bz2
rneovim-c9764bf331b4238ea60af382b013e0d058318d58.zip
vim-patch:9fa35b1c38b8
runtime(lua): fix lua indentation of non-lowercase "keywords" (vim/vim#11759) https://github.com/vim/vim/commit/9fa35b1c38b84d95b5c8e083aa742e0e0490fa1f Co-authored-by: beardedsakimonkey <54521218+beardedsakimonkey@users.noreply.github.com>
-rw-r--r--runtime/indent/lua.vim10
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)