Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tvim: Support end marker in strings

  • Loading branch information...
commit bcc92cb86c7897b4e5f334865ecee23fd70f3e59 1 parent cf5183b
@tomtom authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/templator/expander/tvim.vim
View
4 autoload/templator/expander/tvim.vim
@@ -1,7 +1,7 @@
" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim])
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Last Change: 2012-12-06.
-" @Revision: 54
+" @Revision: 59
" :doc:
" *templator-tvim*
@@ -32,7 +32,7 @@ endf
function! templator#expander#tvim#Expand() "{{{3
let text = join(getline(1, '$'), "\n")
- let text = substitute(text, '<?vim\_s\+\(\_.\{-}\)\_s*?>', '\=s:Replace(submatch(1))', 'g')
+ let text = substitute(text, '<?vim\_s\+\(\(\_[^''"?]\+\|''\_[^'']*''\|"\([^"]*\n\|\_[^"]*"\)\)\{-}\)\_s*?>', '\=s:Replace(submatch(1))', 'g')
" TLogVAR text
let lines = split(text, '
\|\n')
Please sign in to comment.
Something went wrong with that request. Please try again.