Skip to content

Commit 00d3f66

Browse files
committed
Fix #91, force tag endwith space, newline or >
1 parent c557d89 commit 00d3f66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

indent/html.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,13 @@ endfun
267267
" [-- count indent-increasing tags of line a:lnum --]
268268
fun! <SID>HtmlIndentOpen(lnum, pattern)
269269
return <SID>HtmlIndentPatternCount(getline(a:lnum),
270-
\ '.\{-}\(\(<\)\('.a:pattern.'\)\>\)')
270+
\ '.\{-}\(\(<\)\('.a:pattern.'\)\_[ >]\)')
271271
endfun
272272

273273
" [-- count indent-decreasing tags of line a:lnum --]
274274
fun! <SID>HtmlIndentClose(lnum, pattern)
275275
return <SID>HtmlIndentPatternCount(getline(a:lnum),
276-
\ '.\{-}\(\(<\)/\('.a:pattern.'\)\>>\)')
276+
\ '.\{-}\(\(<\)/\('.a:pattern.'\)\_[ >]\)')
277277
endfun
278278

279279
" [-- count self close tags of line a:lnum --]

0 commit comments

Comments
 (0)