aboutsummaryrefslogtreecommitdiff
path: root/lexxer.l
diff options
context:
space:
mode:
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; }