Index: src/bin/psql/mainloop.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/psql/mainloop.c,v
retrieving revision 1.53
diff -c -c -r1.53 mainloop.c
*** src/bin/psql/mainloop.c	20 Mar 2003 06:43:35 -0000	1.53
--- src/bin/psql/mainloop.c	20 Mar 2003 22:08:07 -0000
***************
*** 272,292 ****
  
  			/* start of extended comment? */
  			else if (line[i] == '/' && line[i + thislen] == '*')
! 					{
  				in_xcomment++;
  				if (in_xcomment == 1) 
! 						ADVANCE_1;
! 					}
  
! 			/* end of extended comment? */
! 			else if (line[i] == '*' && line[i + thislen] == '/')
  			{
! 				in_xcomment--;
! 				if (in_xcomment <= 0)
  				{
! 					in_xcomment = 0;
! 				ADVANCE_1;
! 			}
  			}
  
  			/* start of quote? */
--- 272,295 ----
  
  			/* start of extended comment? */
  			else if (line[i] == '/' && line[i + thislen] == '*')
! 			{
  				in_xcomment++;
  				if (in_xcomment == 1) 
! 					ADVANCE_1;
! 			}
  
! 			/* 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? */
