diff options
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/lua.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/indent/lua.vim b/runtime/indent/lua.vim index 0d1f934a03..ff0f64be29 100644 --- a/runtime/indent/lua.vim +++ b/runtime/indent/lua.vim @@ -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 |