Commit: runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759)

1 view
Skip to first unread message

Christian Brabandt

unread,
Aug 20, 2023, 3:30:12 PM8/20/23
to vim...@googlegroups.com
runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759)

Commit: https://github.com/vim/vim/commit/9fa35b1c38b84d95b5c8e083aa742e0e0490fa1f
Author: beardedsakimonkey <54521218+bear...@users.noreply.github.com>
Date: Sun Aug 20 19:21:51 2023 +0000

runtime(lua): fix lua indentation of non-lowercase "keywords" (https://github.com/vim/vim/issues/11759)

diff --git a/runtime/indent/lua.vim b/runtime/indent/lua.vim
index ff0f64be2..35b08d403 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)

Reply all
Reply to author
Forward
0 new messages