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

This commit is contained in:
Michael Meskes 2016-02-16 14:23:50 +01:00
parent bdc309c7dc
commit fc1ae7d2eb
1 changed files with 1 additions and 1 deletions

View File

@ -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.