0
0
mirror of https://github.com/vim/vim.git synced 2025-08-26 20:03:41 -04:00

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

This commit is contained in:
beardedsakimonkey 2023-08-20 19:21:51 +00:00 committed by GitHub
parent e71e9d9ad3
commit 9fa35b1c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,16 @@ if exists("*GetLuaIndent")
endif endif
function! GetLuaIndent() 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. " Find a non-blank line above the current line.
let prevlnum = prevnonblank(v:lnum - 1) let prevlnum = prevnonblank(v:lnum - 1)