commit f748ace52aaadc5e7f2b1b5e11e6ed5979154084
parent e48fbddbf3b70e6350533e38693a6acf2f67034a
Author: Lou Woell <lou.woell@posteo.de>
Date:   Wed, 17 Sep 2025 20:49:28 +0200

[list] handle trailing ::

Diffstat:
Mcmd/harehelper/list_symbols.ha | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/harehelper/list_symbols.ha b/cmd/harehelper/list_symbols.ha @@ -23,11 +23,11 @@ fn list (cmd: getopt::command, ctx: *module::context) void = { if(len(cmd.args) != 1) fmt::fatal("Expected 1 Argument"); - let id = match (parse::identstr(cmd.args[0])) { + let (id, trailing) = match (identstr_trailing(cmd.args[0])) { case let e: parse::error => fmt::fatal(parse::strerror(e)); - case let id: ast::ident => - yield id; + case let res: (ast::ident, bool) => + yield res; }; defer ast::ident_free(id);