From 12a56fa3ce0d65a25e7bcf68aba03d8ba189273f Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 28 May 2008 20:26:41 +0000 Subject: 2008-05-28 Thomas Schwinge [bug #23417: Building with -g3] * lexxer.l (^\#define[ \t]): Ignore until EOL. --- lexxer.l | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lexxer.l') diff --git a/lexxer.l b/lexxer.l index 91d5f71..9725d0b 100644 --- a/lexxer.l +++ b/lexxer.l @@ -213,6 +213,9 @@ static void doSharp(const char *body); /* process body of # directives */ ^\#\ *{Number} { doSharp(yytext+1); SAVE_BEGIN; BEGIN SkipToEOL; } +^\#define[ \t] { /* GCC's pre-processor might emit those. */ + SAVE_BEGIN; + BEGIN SkipToEOL; } ^\# { yyerror("illegal # directive"); SAVE_BEGIN; BEGIN SkipToEOL; } -- cgit v1.2.3