From b0df88745d0faec54a9264e95c691d8024a00c4d Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" <lockhart@fourpalms.org> Date: Wed, 15 Oct 1997 01:12:21 +0000 Subject: [PATCH] Include SQL/92 string continuation across newlines. Allows the following example: select 'first string' '---' 'last string'; to be output as 'first string---last string'. --- src/backend/parser/scan.l | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index 7134e768d86..be5149683ff 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} { -- GitLab