Commit fc1ae7d2 authored by Michael Meskes's avatar Michael Meskes

Change ecpg lexer to accept comments with line breaks in CPP lines.

parent bdc309c7
...@@ -354,7 +354,7 @@ cppinclude_next {space}*#{include_next}{space}* ...@@ -354,7 +354,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})(.*\\{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. * Dollar quoted strings are totally opaque, and no escaping is done on them.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment