summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index d15559c..ce8981b 100644
--- a/main.c
+++ b/main.c
@@ -180,6 +180,8 @@ Node *parse_term(Lexer *l, Proc *p) {
node = parse_expr(l, p);
lex_expected(l, TM_RPAREN);
lex_next(l);
+ node->src_pos.ofs--;
+ node->src_pos.n += 2;
} else if (l->tok == TOK_IDENT) {
NameBinding *b = scope_find(&p->scope, l->ident);
if (b) {