From 063e3ed716b1bae15a408461e16f5668e8c47dc6 Mon Sep 17 00:00:00 2001 From: drbeefsupreme Date: Tue, 5 Apr 2022 12:35:53 -0400 Subject: [PATCH] hoon: doccords dist. between arm-doc and prod-doc docs written above an arm are now distinguishable in the AST from docs written above the product of the arm, by tagging docs written above the arm with a %funk link --- pkg/arvo/sys/hoon.hoon | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkg/arvo/sys/hoon.hoon b/pkg/arvo/sys/hoon.hoon index 59a4b2d4d..b114ceeb8 100644 --- a/pkg/arvo/sys/hoon.hoon +++ b/pkg/arvo/sys/hoon.hoon @@ -13288,10 +13288,15 @@ %+ knee [p=*term q=*hoon] |. ~+ %+ cook |= [a=whit b=term c=whit d=hoon] - =+ e=(glom a c) - ?~ boy.e - [b d] - [b [%note help+`[u.boy.e] d]] + ?~ boy.a :: no arm docs + ?~ boy.c :: no product docs + [b d] + :: product docs, no arm docs + [b [%note help+`[u.boy.c] d]] + ?~ boy.c :: arm docs, no product docs + [b [%note help+[[%funk b]~ u.boy.a] d]] + :: arm docs and product docs + [b [%note help+[[%funk b]~ u.boy.a] [%note help+`[u.boy.c] d]]] ;~ pose ;~ plug apex:docs