diff options
author | antirez <antirez> | 2005-02-26 22:15:35 +0000 |
---|---|---|
committer | antirez <antirez> | 2005-02-26 22:15:35 +0000 |
commit | 0e9b259b069b4eaa2bf214a11e5a7462159a1378 (patch) | |
tree | b1a4a02c7303653cf394f0a0c5e5c5973ee8bdbb /jim.c | |
parent | 401d9ed4ec74ed5729cfa3ae8bc022bb58150539 (diff) | |
download | jimtcl-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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++; } |