mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:9fa35b1c38b8
runtime(lua): fix lua indentation of non-lowercase "keywords" (vim/vim#11759)
9fa35b1c38
Co-authored-by: beardedsakimonkey <54521218+beardedsakimonkey@users.noreply.github.com>
This commit is contained in:
parent
60037feb56
commit
c9764bf331
@ -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…
Reference in New Issue
Block a user