1
0
forked from aniani/vim

patch 9.1.0312: heredocs are not supported for :commands

Problem:  heredocs are not supported for :commands
          (@balki)
Solution: Add heredoc support
          (Yegappan Lakshmanan)

fixes: #14491
closes: #14528

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2024-04-12 18:48:35 +02:00
committed by Christian Brabandt
parent a1dcd76ce7
commit e74cad3321
7 changed files with 189 additions and 14 deletions

View File

@@ -2088,6 +2088,17 @@ skiptowhite(char_u *p)
return p;
}
/*
* skiptowhite: skip over text until ' ' or '\t' or newline or NUL.
*/
char_u *
skiptowhite_or_nl(char_u *p)
{
while (*p != ' ' && *p != '\t' && *p != NL && *p != NUL)
++p;
return p;
}
/*
* skiptowhite_esc: Like skiptowhite(), but also skip escaped chars
*/