aboutsummaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-18 16:31:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-18 16:31:34 -0400
commit1df26851d73e50407a3b7c79bcdb5b0cc053fe67 (patch)
treec2e3c393b30ab34d782fd6839100c6854abd7e91 /repl.c
parente439fcd1e2090ff797b46c80c6264f08ea9e9cfb (diff)
Add syntax for "inline C(...)"
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repl.c b/repl.c
index 9f01c247..c687f378 100644
--- a/repl.c
+++ b/repl.c
@@ -90,7 +90,7 @@ static void repl_err(ast_t *node, const char *fmt, ...)
fputs(" \x1b[m", stderr);
fputs("\n\n", stderr);
if (node)
- fprint_span(stderr, node->file, node->start, node->end, "\x1b[31;1m", 2, color);
+ highlight_error(node->file, node->start, node->end, "\x1b[31;1m", 2, color);
longjmp(on_err, 1);
}