aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-05 22:27:43 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-05 22:27:43 +0200
commitf76f7eaf0a41449a2e3c88c1a240e37e2d741ec2 (patch)
tree570fe95de899746fdd4037fc934b4ae7f2cbd3a5 /src
parent6d763a8cf765c8acdd6673ae2f7be81cbdd3586c (diff)
Match the empty-line case
Diffstat (limited to 'src')
-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); }
%%