mirror of
https://github.com/neovim/neovim.git
synced 2025-10-25 20:07:09 +00: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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user