hare

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

commit 4cebfa9f8689f51c24e58ee9fa23e811fadf69c5
parent 4d8f8121c2fdfd958fc51b053dd11cc9d690728d
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu,  5 May 2022 17:46:15 -0400

haredoc: fix submodule list within submodules

For an example, see `haredoc crypto::aes`. Prior to this commit, it
listed a submodule [[crypto/aes::xts]]. This has been corrected to use
:: instead of /.

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

Diffstat:
Mcmd/haredoc/hare.ha | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmd/haredoc/hare.ha b/cmd/haredoc/hare.ha @@ -108,7 +108,9 @@ fn emit_submodules(ctx: *context) (void | error) = { }; for (let i = 0z; i < len(submodules); i += 1) { let submodule = if (len(ctx.ident) != 0) { - yield strings::concat(identpath, "::", submodules[i]); + const s = unparse::identstr(ctx.ident); + defer free(s); + yield strings::concat(s, "::", submodules[i]); } else { yield submodules[i]; };