hare

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

commit 6e6478cc6f38620de9b5a985711b7d9e12c3b0d1
parent bb6ab5f316389aced18c682a389df66600dce948
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Sun, 14 Mar 2021 22:15:57 -0400

hare::parse::ident: fix synassert

Diffstat:
Mhare/parse/parse.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/parse/parse.ha b/hare/parse/parse.ha @@ -30,7 +30,7 @@ fn ident_trailing(lexer: *lex::lexer) ((ast::ident, bool) | error) = { // Parses a single identifier, i.e. foo::bar::baz export fn ident(lexer: *lex::lexer) (ast::ident | error) = { let ident = ident_trailing(lexer)?; - synassert(mkloc(lexer), !ident.1, "Unexpected trailing :: in ident"); + synassert(mkloc(lexer), !ident.1, "Unexpected trailing :: in ident")?; return ident.0; };