]> granicus.if.org Git - postgresql/commitdiff
Allow continuation lines in ecpg cppline parsing.
authorMichael Meskes <meskes@postgresql.org>
Tue, 15 Aug 2017 14:06:56 +0000 (16:06 +0200)
committerMichael Meskes <meskes@postgresql.org>
Wed, 16 Aug 2017 11:28:10 +0000 (13:28 +0200)
src/interfaces/ecpg/preproc/pgc.l

index 3601544da20d29c04cedcfe02f6b6198353b917a..07c722d1d7237c0ec3a0ee8987648f4cf17a65a4 100644 (file)
@@ -358,7 +358,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.