diff src/lex.l @ 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 5dd06f19e9be
children 7d48766c21a5
line wrap: on
line diff
--- a/src/lex.l
+++ b/src/lex.l
@@ -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;
     }