diff options
Diffstat (limited to 'indent/html.vim')
-rw-r--r-- | indent/html.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indent/html.vim b/indent/html.vim index cbd324bc..769f6318 100644 --- a/indent/html.vim +++ b/indent/html.vim @@ -187,6 +187,7 @@ if exists('g:html_exclude_tags') endfor endif let s:html_indent_tags = join(s:tags, '\|') +let s:html_indent_tags = s:html_indent_tags.'\|\w\+\(-\w\+\)\+' if exists('g:html_indent_tags') let s:html_indent_tags = s:html_indent_tags.'\|'.g:html_indent_tags endif @@ -281,7 +282,7 @@ fun! HtmlIndentGet(lnum) if 0 < searchpair(js, '', jse, 'nWb') \ && 0 < searchpair(js, '', jse, 'nW') " we're inside javascript - if getline(searchpair(js, '', '</script>', 'nWb')) !~ '<script [^>]*type=["'']\?text\/\(html\|template\)' + if getline(searchpair(js, '', '</script>', 'nWb')) !~ '<script [^>]*type=["'']\?text\/\(html\|\(ng-\)\?template\)' \ && getline(lnum) !~ js && getline(a:lnum) !~ jse if restore_ic == 0 setlocal noic |