summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorWormHeamer2025-08-02 06:19:21 -0400
committerWormHeamer2025-08-02 06:19:21 -0400
commiteb9581e4f599470748fdfdceacce61fd8e8f52c7 (patch)
tree5b76cee59606422d3b2c973c828b611e35b16e24 /lex.c
parent828396144285492b14a6d8f5c50a4a0d9d0714ef (diff)
preliminary let bindings
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);
}