generalised the indent rule for procs to handle templates, macros

This commit is contained in:
Zahary Karadjov 2011-08-26 15:31:13 +03:00
commit 32b82b89cf

View file

@ -66,8 +66,8 @@ function! GetNimrodIndent(lnum)
endif endif
if pline =~ ':\s*$' if pline =~ ':\s*$'
\ || pline =~ '=\s*$'
\ || pline =~ '\(type\|import\|const\|var\)\s*$' \ || pline =~ '\(type\|import\|const\|var\)\s*$'
\ || pline =~ 'proc.*=\s*$'
\ || pline =~ '=\s*\(object\|enum\)' \ || pline =~ '=\s*\(object\|enum\)'
return plindent + &sw return plindent + &sw
endif endif