From: Michael Meskes Date: Tue, 15 Aug 2017 14:06:56 +0000 (+0200) Subject: Allow continuation lines in ecpg cppline parsing. X-Git-Tag: REL_11_BETA1~1800 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4619b26a6a69ab31cab4a0632460647d7f5510f;p=postgresql Allow continuation lines in ecpg cppline parsing. --- diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 7b2bfdccc9..3598a200d0 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -357,7 +357,7 @@ cppinclude_next {space}*#{include_next}{space}* /* first a general line for all commands not starting with "i" */ /* and then the other commands starting with "i", we have to add these * separately because the cppline production would match on "include" too */ -cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+\/)|.)*{newline} +cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+\/)|.|\\{space}*{newline})*{newline} /* * Dollar quoted strings are totally opaque, and no escaping is done on them.