summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meskes2016-02-16 13:23:50 +0000
committerMichael Meskes2016-02-16 13:24:54 +0000
commitfc1ae7d2eb6a3de47f5f5cd6ebf2d18d226b8036 (patch)
tree07b8a39d4ab1b70ec9d9c1781f199ab7687362d6
parentbdc309c7dc849a7362a624846ebc9170a8c353f3 (diff)
Change ecpg lexer to accept comments with line breaks in CPP lines.
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
index ede4517082..397f14ef26 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -354,7 +354,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})(.*\\{space})*.*{newline}
+cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+\/)|.)*{newline}
/*
* Dollar quoted strings are totally opaque, and no escaping is done on them.