aboutsummaryrefslogtreecommitdiff
path: root/lexxer.l
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2008-05-28 20:26:41 +0000
committerThomas Schwinge <tschwinge@gnu.org>2008-05-28 20:26:41 +0000
commit12a56fa3ce0d65a25e7bcf68aba03d8ba189273f (patch)
treea3b8e5bbfd66c957c50d1c01f6f69ae367fd174c /lexxer.l
parent577f843f6d6fdad2332c7a5d4c8c3dbcc52fe5d0 (diff)
downloadmig-12a56fa3ce0d65a25e7bcf68aba03d8ba189273f.tar.gz
mig-12a56fa3ce0d65a25e7bcf68aba03d8ba189273f.tar.bz2
mig-12a56fa3ce0d65a25e7bcf68aba03d8ba189273f.zip
2008-05-28 Thomas Schwinge <tschwinge@gnu.org>
[bug #23417: Building with -g3] * lexxer.l (^\#define[ \t]): Ignore until EOL.
Diffstat (limited to 'lexxer.l')
-rw-r--r--lexxer.l3
1 files changed, 3 insertions, 0 deletions
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; }