updated for version 7.0e05
This commit is contained in:
@ -130,14 +130,16 @@ function! GetSMLIndent()
|
||||
elseif line =~ '^\s*else\>'
|
||||
if lline !~ '^\s*\(if\|else\|then\)\>'
|
||||
return s:FindPair('\<if\>', '', '\<then\>')
|
||||
else return ind
|
||||
else
|
||||
return ind
|
||||
endif
|
||||
|
||||
" Match 'then' with 'if'
|
||||
elseif line =~ '^\s*then\>'
|
||||
if lline !~ '^\s*\(if\|else\|then\)\>'
|
||||
return s:FindPair('\<if\>', '', '\<then\>')
|
||||
else return ind
|
||||
else
|
||||
return ind
|
||||
endif
|
||||
|
||||
" Indent if current line begins with ']'
|
||||
|
||||
Reference in New Issue
Block a user