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 ...
if restore_ic == 0
setlocal noic
endif
return -1
endif
" [-- special handling for : use cindent --]
let js = '', 'nWb')) !~ '