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:
parent
e71e9d9ad3
commit
9fa35b1c38
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user