aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.l b/src/lexer.l
index 55db1a5..5242af0 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -52,6 +52,6 @@ ws [ \t]
BEGIN(error);
return YYerror;
}
-<error>.* { BEGIN(0); }
+<error>.*|\n { BEGIN(0); }
%%