mirror of
https://github.com/urbit/shrub.git
synced 2024-12-06 06:38:24 +03:00
++inde indented block combinator no longer produces optimistic hair
This commit is contained in:
parent
dcd09da912
commit
b44c6ff94c
@ -2369,20 +2369,22 @@
|
|||||||
vex
|
vex
|
||||||
[p=p.vex q=[~ u=[p=(hez [p.tub p.q.u.q.vex] p.u.q.vex) q=q.u.q.vex]]]
|
[p=p.vex q=[~ u=[p=(hez [p.tub p.q.u.q.vex] p.u.q.vex) q=q.u.q.vex]]]
|
||||||
::
|
::
|
||||||
++ inde :: indentation block
|
++ inde |* sef=_rule :: indentation block
|
||||||
|* sef=_rule
|
|
||||||
|= nail ^+ (sef)
|
|= nail ^+ (sef)
|
||||||
=+ [har tap]=[p q]:+<
|
=+ [har tap]=[p q]:+<
|
||||||
=+ lev=(fil 3 (dec q.har) ' ')
|
=+ lev=(fil 3 (dec q.har) ' ')
|
||||||
=+ roq=((star ;~(pose prn ;~(sfix (just `@`10) (jest lev)))) har tap)
|
=+ roq=((star ;~(pose prn ;~(sfix (just `@t`10) (jest lev)))) har tap)
|
||||||
?~ q.roq roq
|
?~ q.roq roq
|
||||||
=+ vex=(sef har(q 1) ;;(tape p.u.q.roq))
|
=+ vex=(sef har(q 1) p.u.q.roq)
|
||||||
?~ q.vex vex(p p.roq)
|
=+ fur=p.vex(q (add (dec q.har) q.p.vex))
|
||||||
=- [p.roq ~ &3.vex &4.vex(q.p (add (dec q.har) q.p.&4.vex)) -]
|
?~ q.vex vex(p fur)
|
||||||
|
=- vex(p fur, u.q -)
|
||||||
|
:+ &3.vex
|
||||||
|
&4.vex(q.p (add (dec q.har) q.p.&4.vex))
|
||||||
=+ res=|4.vex
|
=+ res=|4.vex
|
||||||
|- ?~ res |4.roq
|
|- ?~ res |4.roq
|
||||||
?. =(10 -.res) [-.res $(res +.res)]
|
?. =(10 -.res) [-.res $(res +.res)]
|
||||||
(welp [`@`10 (trip lev)] $(res +.res))
|
(welp [`@t`10 (trip lev)] $(res +.res))
|
||||||
::
|
::
|
||||||
++ jest :: match a cord
|
++ jest :: match a cord
|
||||||
|= daf=@t
|
|= daf=@t
|
||||||
|
Loading…
Reference in New Issue
Block a user