Mercurial > octave-nkf
changeset 8767:026c6732ec7a
lex.l (next_token_can_follow_bin_op): push all characters read on to buffer stack
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 16 Feb 2009 16:44:55 -0500 |
parents | 8cb2a144f321 |
children | e0fbf17a17bb |
files | src/ChangeLog src/lex.l |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Feb 16 14:43:34 2009 -0500 +++ b/src/ChangeLog Mon Feb 16 16:44:55 2009 -0500 @@ -1,5 +1,8 @@ 2009-02-16 John W. Eaton <jwe@octave.org> + * lex.l (next_token_can_follow_bin_op): + Push all characters read on to buffer stack. + * genprops.awk (emit_source): Don't use + to concatenate strings. 2009-02-16 Jaroslav Hajek <highegg@gmail.com>
--- a/src/lex.l Mon Feb 16 14:43:34 2009 -0500 +++ b/src/lex.l Mon Feb 16 16:44:55 2009 -0500 @@ -2837,9 +2837,9 @@ { c = text_yyinput (); - if (! match_any (c, ",;\n") && (c == ' ' || c == '\t')) - buf.push (c); - else + buf.push (c); + + if (match_any (c, ",;\n") || (c != ' ' && c != '\t')) break; }