diff options
author | Thomas Lively <tlively@google.com> | 2024-01-03 14:32:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 14:32:28 -0800 |
commit | 1878403ec9c4382ab51ca72257f4d97a23a1fc0d (patch) | |
tree | c879fbe5bb6809498d136e41826bbc72e516ac0e /src | |
parent | 328bd7a7d6cce32e893c5839b95574f8a3d8bd9a (diff) | |
download | binaryen-1878403ec9c4382ab51ca72257f4d97a23a1fc0d.tar.gz binaryen-1878403ec9c4382ab51ca72257f4d97a23a1fc0d.tar.bz2 binaryen-1878403ec9c4382ab51ca72257f4d97a23a1fc0d.zip |
[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".
Diffstat (limited to 'src')
-rw-r--r-- | src/parser/parsers.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename Ctx> 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)) { |