From 894e1976e3b01764f5d80e5d1925804904f14025 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 25 Sep 2013 15:35:18 -0400 Subject: [PATCH] Cheap quick hack for ignoring #pragma to EOL --- parser.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index e0f46a4..839e089 100644 --- a/parser.c +++ b/parser.c @@ -3299,7 +3299,13 @@ static bool parse_pragma_do(parser_t *parser) else { (void)!parsewarning(parser, WARN_UNKNOWN_PRAGMAS, "ignoring #pragma %s", parser_tokval(parser)); - return false; + + /* skip to eol */ + while (!parse_eol(parser)) { + parser_next(parser); + } + + return true; } return true;