aboutsummaryrefslogtreecommitdiff
path: root/boot/parser.yy
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-31 00:48:25 +0100
committerEugen Wissner <belka@caraus.de>2026-10-31 00:48:25 +0100
commit5dd5d460f154c146d26f115706a21b7808658edf (patch)
tree14995bb9aad23bf4b025a4f654e34d8c954c3d57 /boot/parser.yy
parentd54b7d86beff8bb91e204e56a7ec01d3ab8ca43c (diff)
downloadelna-5dd5d460f154c146d26f115706a21b7808658edf.tar.gz
Fix error span for missing return message
Diffstat (limited to 'boot/parser.yy')
-rw-r--r--boot/parser.yy7
1 files changed, 5 insertions, 2 deletions
diff --git a/boot/parser.yy b/boot/parser.yy
index fa701ec..c4e514b 100644
--- a/boot/parser.yy
+++ b/boot/parser.yy
@@ -328,12 +328,15 @@ procedure_heading:
procedure_declaration:
"proc" identifier_definition procedure_heading procedure_body
{
- $$ = new boot::procedure_declaration(boot::make_position(@$),
+ $$ = new boot::procedure_declaration(
+ boot::make_position(yy::location(@1.begin, @3.end)),
std::move(*$2), $3, std::move(*$4));
}
| "proc" identifier_definition procedure_heading "extern"
{
- $$ = new boot::procedure_declaration(boot::make_position(@$), std::move(*$2), $3);
+ $$ = new boot::procedure_declaration(
+ boot::make_position(yy::location(@1.begin, @3.end)),
+ std::move(*$2), $3);
}
call_expression:
designator_expression actual_parameter_list