changeset 608:a675e03540dd

[project @ 1994-08-13 23:50:19 by jwe]
author jwe
date Sat, 13 Aug 1994 23:50:19 +0000
parents ae3b8b2924a0
children cdc194110938
files src/lex.l
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/lex.l	Sat Aug 13 20:11:17 1994 +0000
+++ b/src/lex.l	Sat Aug 13 23:50:19 1994 +0000
@@ -1198,15 +1198,12 @@
  * return 1 if it looks like it should be treated as a binary
  * operator.  For example,
  *
- *   [ 1 + 2 ]  or  [ 1+2 ]  ==> binary
- *
- * The case of [ 1+ 2 ] should also be treated as a binary operator,
- * but it is handled by the caller.
+ *   [ 1 + 2 ]  or  [ 1+ 2]  or  [ 1+2 ]  ==> binary
  */
 static int
 looks_like_bin_op (int spc_prev, int spc_next)
 {
-  return ((spc_prev && spc_next) || ! (spc_prev || spc_next));
+  return ((spc_prev && spc_next) || ! spc_prev);
 }
 
 /*