hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit b3894bea7c53bd79d36c28408c020b1ea372722d
parent e8108b0a18ba224912e9d9c130207da622becb43
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 17 Oct 2023 21:07:53 -0400

hare::parse: allow ident for all functions

sort/+test.ha fails to parse without this change:
try `haredoc -T+test sort`

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/decl.ha | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/hare/parse/decl.ha b/hare/parse/decl.ha @@ -161,8 +161,6 @@ fn decl_func(lexer: *lex::lexer) (ast::decl_func | error) = { let tok = want(lexer, ltok::EQUAL, ltok::SEMICOLON)?; let body = switch (tok.0) { case ltok::EQUAL => - synassert(ident_loc, len(ident) == 1, - "Unexpected identifier, was expecting name")?; const params = prototype.params; for (let i = 0z; i < len(params); i += 1) { synassert(params[i].loc,