diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l
index 7134e768d86601f064a3fdd89ca9ae17f7464f47..be5149683ff774a421f1d587e9137867351fa38f 100644
--- a/src/backend/parser/scan.l
+++ b/src/backend/parser/scan.l
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.23 1997/09/25 14:10:23 thomas Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.24 1997/10/15 01:12:21 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -94,6 +94,7 @@ xqdouble		{quote}{quote}
 xqinside		[^\\']*
 xqembedded		"\\'"
 xqliteral		[\\](.|\n)
+xqcat			{quote}{space}*\n{space}*{quote}
 
 xcline			[\/][\*].*[\*][\/]{space}*\n*
 xcstart			[\/][\*]{op_and_self}*
@@ -186,6 +187,8 @@ other			.
 					memcpy(literal+llen, yytext, yyleng+1);
 					llen += yyleng;
 				}
+<xq>{xqcat}		{
+				}
 
 <xm>{space}*	{ /* ignore */ }
 <xm>{xmstop}	{