From 9eca819d3134808d2c97f4180e06b3bed9711d7b Mon Sep 17 00:00:00 2001 From: mlokr Date: Fri, 19 Jul 2024 13:51:38 +0200 Subject: [PATCH] p --- hblang/README.md | 2 +- hblang/src/parser.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/hblang/README.md b/hblang/README.md index 721c1bf..7b0d1f7 100644 --- a/hblang/README.md +++ b/hblang/README.md @@ -363,7 +363,7 @@ new := fn($Elem: type): Vec(Elem) return Vec(Elem).{ data: @bitcast(0), len: 0, deinit := fn($Elem: type, vec: ^Vec(Elem)): void { free(@bitcast(vec.data), vec.cap * @sizeof(Elem), @alignof(Elem)); *vec = new(Elem); - return; + return } push := fn($Elem: type, vec: ^Vec(Elem), value: Elem): ^Elem { diff --git a/hblang/src/parser.rs b/hblang/src/parser.rs index 7e3d31b..bc00bf9 100644 --- a/hblang/src/parser.rs +++ b/hblang/src/parser.rs @@ -431,10 +431,6 @@ impl<'a, 'b> Parser<'a, 'b> { } } - if matches!(token.kind, T::Return) { - self.expect_advance(T::Semi); - } - if matches!(token.kind, T::Loop | T::LBrace | T::Fn) { self.pop_scope(frame); }