Skip to content

Commit 7c231cc

Browse files
committed
Merge pull request #124 from lyokha/master
highlight HTML tags like </p> correctly
2 parents cfb6042 + 1801845 commit 7c231cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/pandoc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ endif
193193
" HTML: {{{3
194194
" Set embedded HTML highlighting
195195
syn include @HTML syntax/html.vim
196-
syn match pandocHTML /<\/\?\a[^>]\+>/ contains=@HTML
196+
syn match pandocHTML /<\/\?\a.\{-}>/ contains=@HTML
197197
" Support HTML multi line comments
198198
syn region pandocHTMLComment start=/<!--\s\=/ end=/\s\=-->/ keepend contains=pandocHTMLCommentStart,pandocHTMLCommentEnd
199199
call s:WithConceal('html_c_s', 'syn match pandocHTMLCommentStart /<!--/ contained', 'conceal cchar='.s:cchars['html_c_s'])

0 commit comments

Comments
 (0)