Problem: Heredoc in scripts does not accept lower case marker.
Solution: Allow lower case only in non-Vim scripts. (Ken Takata,
closes #6019)
return NULL;
}
*p = NUL;
- if (vim_islower(*marker))
+ if (!script_get && vim_islower(*marker))
{
emsg(_("E221: Marker cannot start with lower case letter"));
return NULL;
lua << trim
vim.command('let s ..= "D"')
.
- call assert_equal('ABCD', s)
+ lua << trim eof
+ vim.command('let s ..= "E"')
+ eof
+ call assert_equal('ABCDE', s)
endfunc
" vim: shiftwidth=2 sts=2 expandtab
perl << trim
VIM::DoCommand('let s ..= "D"')
.
- call assert_equal('ABCD', s)
+ perl << trim eof
+ VIM::DoCommand('let s ..= "E"')
+ eof
+ call assert_equal('ABCDE', s)
endfunc
" vim: shiftwidth=2 sts=2 expandtab
python << trim
s+='D'
.
- call assert_equal('ABCD', pyxeval('s'))
+ python << trim eof
+ s+='E'
+ eof
+ call assert_equal('ABCDE', pyxeval('s'))
endfunc
" vim: shiftwidth=2 sts=2 expandtab
python3 << trim
s+='D'
.
- call assert_equal('ABCD', pyxeval('s'))
+ python3 << trim eof
+ s+='E'
+ eof
+ call assert_equal('ABCDE', pyxeval('s'))
endfunc
" vim: shiftwidth=2 sts=2 expandtab
pyx << trim
result+='D'
.
- call assert_equal('ABCD', pyxeval('result'))
+ pyx << trim eof
+ result+='E'
+ eof
+ call assert_equal('ABCDE', pyxeval('result'))
endfunc
" vim: shiftwidth=2 sts=2 expandtab
pyx << trim
result+='D'
.
- call assert_equal('ABCD', pyxeval('result'))
+ pyx << trim eof
+ result+='E'
+ eof
+ call assert_equal('ABCDE', pyxeval('result'))
endfunc
" vim: shiftwidth=2 sts=2 expandtab
ruby << trim
Vim.command('let s ..= "D"')
.
- call assert_equal('ABCD', s)
+ ruby << trim eof
+ Vim.command('let s ..= "E"')
+ eof
+ call assert_equal('ABCDE', s)
endfunc
" vim: shiftwidth=2 sts=2 expandtab
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 672,
/**/
671,
/**/