From bc17acf8fe5addc32325b730fc6f2f1ad4924518 Mon Sep 17 00:00:00 2001 From: Torsten Paul Date: Thu, 26 Jun 2014 22:32:43 +0200 Subject: [PATCH] Fix handling of multi-line comments. If not eaten by the lexer, the comment content will be dumped to stdout as default action. --- src/lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.l b/src/lexer.l index a2c75738..c873be8e 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -207,7 +207,7 @@ use[ \t\r\n>]*"<" { BEGIN(cond_use); } { "*/" { BEGIN(INITIAL); } {UNICODE} { parser_error_pos -= strlen(lexertext) - 1; } -\n +.|\n } "<=" return LE;