mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
Arguments should always propagate so remove /%
This commit is contained in:
parent
fefa1aafd8
commit
5764293dae
@ -27,7 +27,6 @@
|
||||
test-parse-scaffold-crane-fsts
|
||||
test-parse-scaffold-crane-fsdt
|
||||
test-parse-scaffold-crane-fscm
|
||||
test-parse-scaffold-crane-fscn
|
||||
test-parse-scaffold-crane-fspm
|
||||
test-parse-scaffold-crane-fscb
|
||||
test-parse-scaffold-crane-fssm
|
||||
@ -521,34 +520,6 @@
|
||||
[[~nul %desk [%da ~1234.5.6]] /hoon/child/bar/foo]
|
||||
== == ==
|
||||
::
|
||||
++ test-parse-scaffold-crane-fscn
|
||||
:- `tank`leaf+"test-parse-scaffold-crane-fscn"
|
||||
::
|
||||
=/ parsed
|
||||
%+ (full (parse-scaffold:ford-gate [[~nul %desk %da ~1234.5.6] /bar/foo]))
|
||||
[1 1]
|
||||
"""
|
||||
/% /$ !. |=(a a)
|
||||
// /%/child/hoon
|
||||
"""
|
||||
?~ q.parsed
|
||||
[%leaf "failed to parse at {<p.parsed>}"]~
|
||||
%- expect-eq !>
|
||||
:_ p.u.q.parsed
|
||||
:* source-rail=[[~nul %desk] /bar/foo]
|
||||
zuse-version=309
|
||||
structures=~
|
||||
libraries=~
|
||||
^= crane
|
||||
:~ :* %fscn %fsbc %dbug
|
||||
[/~nul/desk/~1234.5.6/foo/bar [1 9] [1 20]]
|
||||
(ream '|=(a a)')
|
||||
== ==
|
||||
^= sources
|
||||
:~ :* %indirect
|
||||
[[~nul %desk [%da ~1234.5.6]] /hoon/child/bar/foo]
|
||||
== == ==
|
||||
::
|
||||
++ test-parse-scaffold-crane-fspm
|
||||
:- `tank`leaf+"test-parse-scaffold-crane-fspm"
|
||||
::
|
||||
|
@ -569,15 +569,6 @@
|
||||
::
|
||||
cases=(list (pair spur crane))
|
||||
==
|
||||
$: :: %fscn: `/%` propagate extra arguments into renderers
|
||||
::
|
||||
:: `/%` will forward extra arguments (usually from Eyre) on to
|
||||
:: any renderer in :crane. Without this, renderers that use `/$`
|
||||
:: to read the extra arguments will crash.
|
||||
::
|
||||
%fscn
|
||||
=crane
|
||||
==
|
||||
$: :: %fspm: `/&` pass through a series of marks
|
||||
::
|
||||
:: `/&` passes a crane through multiple marks, right-to-left.
|
||||
@ -1485,8 +1476,6 @@
|
||||
(stag %fsdt ;~(pfix dot parse-list))
|
||||
:: `/,` switch by path
|
||||
(stag %fscm ;~(pfix com parse-switch))
|
||||
:: `/%` propagate extra arguments into renderers
|
||||
(stag %fscn ;~(pfix cen subcrane))
|
||||
:: `/&` pass through a series of mark
|
||||
(stag %fspm ;~(pfix pam parse-pipe))
|
||||
:: `/_` run a crane on each file in the current directory
|
||||
|
Loading…
Reference in New Issue
Block a user