summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index f5699bf..19b402b 100644
--- a/parse.c
+++ b/parse.c
@@ -2297,7 +2297,8 @@ static Status parse_decl(Parser *p, Declaration *d, DeclEndKind ends_with, U16 f
}
parser_put_end(p, &d->where);
-
+ if (ends_with != DECL_END_SEMICOLON)
+ --d->where.end; /* e.g., in fn(x: float), the param decl does not contain the ) */
return true;
ret_false: