Gobble up complete lines after a '#'. This
authorMarius Vollmer <mvo@zagadka.de>
Sat, 17 May 2003 00:06:30 +0000 (00:06 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Sat, 17 May 2003 00:06:30 +0000 (00:06 +0000)
removes preprocessor directives from the snarfage that might
otherwise confuse us.  These directives appear when compiling with
"-g3", for example.

libguile/c-tokenize.lex

index 8859629..cb5d239 100644 (file)
@@ -53,7 +53,7 @@ int cookie_was_last = 0;
 
 ({SPACE}*\n*{SPACE}*)+                     { OUT(eol); }
 
-#                                          { OUT(hash); IS_NOT_COOKIE; }
+#.*\n                                      { OUT(hash); IS_NOT_COOKIE; }
 
 {LETTER}({LETTER}|{DIGIT})*                { OUT_T (id); IS_NOT_COOKIE; }