summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/parsers.h4
-rw-r--r--src/passes/Print.cpp4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/parser/parsers.h b/src/parser/parsers.h
index e3434d1e6..ef46a395a 100644
--- a/src/parser/parsers.h
+++ b/src/parser/parsers.h
@@ -2426,7 +2426,7 @@ makeContNew(Ctx& ctx, Index pos, const std::vector<Annotation>& annotations) {
return ctx.makeContNew(pos, annotations, *type);
}
-// resume ::= 'resume' typeidx ('(' 'tag' tagidx labelidx ')')*
+// resume ::= 'resume' typeidx ('(' 'on' tagidx labelidx ')')*
template<typename Ctx>
Result<>
makeResume(Ctx& ctx, Index pos, const std::vector<Annotation>& annotations) {
@@ -2434,7 +2434,7 @@ makeResume(Ctx& ctx, Index pos, const std::vector<Annotation>& annotations) {
CHECK_ERR(type);
auto tagLabels = ctx.makeTagLabelList();
- while (ctx.in.takeSExprStart("tag"sv)) {
+ while (ctx.in.takeSExprStart("on"sv)) {
auto tag = tagidx(ctx);
CHECK_ERR(tag);
auto label = labelidx(ctx);
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 5c83e89f1..8bf30702c 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2374,11 +2374,9 @@ struct PrintExpressionContents
o << ' ';
printHeapType(curr->contType);
- // We deliberate keep all (tag ...) clauses on the same line as the resume
- // itself to work around a quirk in update_lit_checks.py
for (Index i = 0; i < curr->handlerTags.size(); i++) {
o << " (";
- printMedium(o, "tag ");
+ printMedium(o, "on ");
curr->handlerTags[i].print(o);
o << ' ';
curr->handlerBlocks[i].print(o);