1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-08 07:21:33 +03:00

Allow continuation lines in ecpg cppline parsing.

This commit is contained in:
Michael Meskes 2017-08-15 16:06:56 +02:00
parent d01fc51c00
commit 954490fecb

View File

@ -358,7 +358,7 @@ cppinclude_next {space}*#{include_next}{space}*
/* first a general line for all commands not starting with "i" */ /* first a general line for all commands not starting with "i" */
/* and then the other commands starting with "i", we have to add these /* and then the other commands starting with "i", we have to add these
* separately because the cppline production would match on "include" too */ * 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. * Dollar quoted strings are totally opaque, and no escaping is done on them.