From 1878403ec9c4382ab51ca72257f4d97a23a1fc0d Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 3 Jan 2024 14:32:28 -0800 Subject: [Parser] Go back to "sub final" intead of "sub open" (#6199) The planned spec change to use "sub open" never came together, so the standard format remains "sub final". --- src/parser/parsers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser/parsers.h b/src/parser/parsers.h index 1d786f363..601007036 100644 --- a/src/parser/parsers.h +++ b/src/parser/parsers.h @@ -2094,7 +2094,7 @@ template MaybeResult<> subtype(Ctx& ctx) { } if (ctx.in.takeSExprStart("sub"sv)) { - if (ctx.in.takeKeyword("open"sv)) { + if (!ctx.in.takeKeyword("final"sv)) { ctx.setOpen(); } if (auto super = maybeTypeidx(ctx)) { -- cgit v1.2.3