Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 954490f

Browse files
author
Michael Meskes
committed
Allow continuation lines in ecpg cppline parsing.
1 parent d01fc51 commit 954490f

File tree

1 file changed

+1
-1
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/preproc/pgc.l

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ cppinclude_next {space}*#{include_next}{space}*
358358
/* first a general line for all commands not starting with "i" */
359359
/* and then the other commands starting with "i", we have to add these
360360
* separately because the cppline production would match on "include" too */
361-
cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+\/)|.)*{newline}
361+
cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+\/)|.|\\{space}*{newline})*{newline}
362362

363363
/*
364364
* Dollar quoted strings are totally opaque, and no escaping is done on them.

0 commit comments

Comments
 (0)