Index: src/bin/psql/mainloop.c =================================================================== RCS file: /cvsroot/pgsql-server/src/bin/psql/mainloop.c,v retrieving revision 1.54 diff -c -c -r1.54 mainloop.c *** src/bin/psql/mainloop.c 20 Mar 2003 22:08:50 -0000 1.54 --- src/bin/psql/mainloop.c 21 Mar 2003 03:26:40 -0000 *************** *** 281,295 **** /* in or end of extended comment? */ else if (in_xcomment) { ! if (line[i] == '*' && line[i + thislen] == '/') ! { ! in_xcomment--; ! if (in_xcomment <= 0) ! { ! in_xcomment = 0; ADVANCE_1; - } - } } /* start of quote? */ --- 281,289 ---- /* in or end of extended comment? */ else if (in_xcomment) { ! if (line[i] == '*' && line[i + thislen] == '/' && ! !--in_xcomment) ADVANCE_1; } /* start of quote? */