Allow newlines after a tag name

Closes #108
This commit is contained in:
Adriaan Zonnenberg
2018-05-25 23:32:56 +02:00
parent 58d8de76b0
commit 6e90d9ed5a
2 changed files with 13 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ function! s:register_language(language, tag, ...)
unlet! b:current_syntax
execute 'syntax region vue_' . a:language
\ 'keepend'
\ 'start=/<' . a:tag . ' \_[^>]*' . attr . '\_[^>]*>/'
\ 'start=/<' . a:tag . '\>\_[^>]*' . attr . '\_[^>]*>/'
\ 'end="</' . a:tag . '>"me=s-1'
\ 'contains=@' . a:language . ',vueSurroundingTag'
\ 'fold'