aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorantirez <antirez>2005-02-26 22:15:35 +0000
committerantirez <antirez>2005-02-26 22:15:35 +0000
commit0e9b259b069b4eaa2bf214a11e5a7462159a1378 (patch)
treeb1a4a02c7303653cf394f0a0c5e5c5973ee8bdbb /jim.c
parent401d9ed4ec74ed5729cfa3ae8bc022bb58150539 (diff)
downloadjimtcl-0e9b259b069b4eaa2bf214a11e5a7462159a1378.zip
jimtcl-0e9b259b069b4eaa2bf214a11e5a7462159a1378.tar.gz
jimtcl-0e9b259b069b4eaa2bf214a11e5a7462159a1378.tar.bz2
Clemem's patch fixing expressions containing newlines parsing.
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/jim.c b/jim.c
index 3b0488e..7762fac 100644
--- a/jim.c
+++ b/jim.c
@@ -5018,11 +5018,12 @@ static struct Jim_ExprOperator Jim_ExprOperators[] = {
int JimParseExpression(struct JimParserCtx *pc)
{
- /* Discard spaces */
+ /* Discard spaces and quoted newline */
while(*(pc->p) == ' ' ||
*(pc->p) == '\t' ||
*(pc->p) == '\r' ||
- *(pc->p) == '\n') {
+ *(pc->p) == '\n' ||
+ (*(pc->p) == '\\' && *(pc->p+1) == '\n')) {
pc->p++;
}