', 'nWb')
\ || 0 < searchpair(js, '', '', 'nW')
" we're inside javascript
if getline(lnum) !~ js && getline(a:lnum) != ''
return cindent(a:lnum)
endif
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 --]