mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
vim-patch:6633611f4280
runtime(lua): indent curly bracket followed by line comment (vim/vim#12306)
fixes vim/vim#12305
6633611f42
Co-authored-by: champignoom <66909116+champignoom@users.noreply.github.com>
This commit is contained in:
parent
abc3721e4f
commit
3f877657dd
@ -41,7 +41,7 @@ function! GetLuaIndent()
|
||||
let prevline = getline(prevlnum)
|
||||
let midx = match(prevline, '^\s*\%(if\>\|for\>\|while\>\|repeat\>\|else\>\|elseif\>\|do\>\|then\>\)')
|
||||
if midx == -1
|
||||
let midx = match(prevline, '{\s*$')
|
||||
let midx = match(prevline, '{\s*\%(--\%([^[].*\)\?\)\?$')
|
||||
if midx == -1
|
||||
let midx = match(prevline, '\<function\>\s*\%(\k\|[.:]\)\{-}\s*(')
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user