diff options
author | Marius Vollmer <mvo@zagadka.de> | 2003-05-17 00:06:30 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2003-05-17 00:06:30 +0000 |
commit | 6d7c6cf4913d4f7755e94d05359739af0c1e26c1 (patch) | |
tree | c092f34e944a80b4d2ea697572af71e79ab7de93 /libguile/c-tokenize.lex | |
parent | 8e3fee84c9b1bdc204f9bb174e27419fe155c3a5 (diff) | |
download | guile-6d7c6cf4913d4f7755e94d05359739af0c1e26c1.tar.gz |
Gobble up complete lines after a '#'. This
removes preprocessor directives from the snarfage that might
otherwise confuse us. These directives appear when compiling with
"-g3", for example.
Diffstat (limited to 'libguile/c-tokenize.lex')
-rw-r--r-- | libguile/c-tokenize.lex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/c-tokenize.lex b/libguile/c-tokenize.lex index 885962968..cb5d23939 100644 --- a/libguile/c-tokenize.lex +++ b/libguile/c-tokenize.lex @@ -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; } |