summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lex.c b/lex.c
index 7cfc1ec..b9ee85c 100644
--- a/lex.c
+++ b/lex.c
@@ -94,7 +94,7 @@ void lex_error_at(Lexer *l, LexSpan pos, LexErr e, Str msg) {
lex_err_color(e);
if (e != LE_NONE) fprintf(stderr, "%s", e == LE_ERROR ? "error" : "warn");
lex_err_color(LE_NONE);
- fprintf(stderr, ": %.*s\n\n", (int)msg.n, msg.s);
+ fprintf(stderr, ": %.*s\n", (int)msg.n, msg.s);
{
int ofs = pos.ofs;
@@ -111,8 +111,6 @@ void lex_error_at(Lexer *l, LexSpan pos, LexErr e, Str msg) {
fputc('\n', stderr);
}
- fputc('\n', stderr);
-
if (e == LE_ERROR) {
exit(1);
}