diff src/lex.l @ 3985:fa0ae9105656

[project @ 2002-07-11 04:02:00 by jwe]
author jwe
date Thu, 11 Jul 2002 04:02:00 +0000
parents e2290bf911f0
children 9a73d0e7e737
line wrap: on
line diff
--- a/src/lex.l	Thu Jul 11 03:39:34 2002 +0000
+++ b/src/lex.l	Thu Jul 11 04:02:00 2002 +0000
@@ -2158,11 +2158,12 @@
       if (postfix_un_op || bin_op || sep_op || dot_op)
 	return;
 
-      int index_op = (c1 == '(');
+      int index_op = (c1 == '(' || c1 == '{');
 
       if (index_op)
 	{
-	  // If there is no space before the '(', we don't insert a comma.
+	  // If there is no space before the indexing op, we don't
+	  // insert a comma.
 	  if (! spc_gobbled)
 	    return;