HtmlIndentCloseAlt(a:lnum)
endif
endif
return 0
endfun
fun! HtmlIndentGet(lnum)
" Find a non-empty line above the current line.
let lnum = prevnonblank(a:lnum - 1)
" Hit the start of the file, use zero indent.
if lnum == 0
return 0
endif
let restore_ic = &ic
setlocal ic " ignore case
" [-- special handling for : no indenting --]
if getline(a:lnum) =~ '\c'
\ || 0 < searchpair('\c', '', '\c
', 'nWb')
\ || 0 < searchpair('\c', '', '\c
', 'nW')
" we're in a line with or inside ...
return -1
endif
if getline(lnum) =~ '\c'
" line before the current line a:lnum contains
" a closing . --> search for line before
" starting to restore the indent.
let preline = prevnonblank(search('\c', 'bW') - 1)
if preline > 0
return indent(preline)
endif
endif
let ind = HtmlIndentSum(lnum, -1)
let ind = ind + HtmlIndentSum(a:lnum, 0)
if restore_ic == 0
setlocal noic
endif
return indent(lnum) + (&sw * ind)
endfun
" [-- EOF /indent/html.vim --]