prettyprint.backend: make +nil+ render as L{ }.
parent
c439960a17
commit
4e97e9a8fb
|
@ -214,6 +214,7 @@ M: byte-array pprint-delims drop \ B{ \ } ;
|
|||
M: byte-vector pprint-delims drop \ BV{ \ } ;
|
||||
M: vector pprint-delims drop \ V{ \ } ;
|
||||
M: cons-state pprint-delims drop \ L{ \ } ;
|
||||
M: +nil+ pprint-delims drop \ L{ \ } ;
|
||||
M: hashtable pprint-delims drop \ H{ \ } ;
|
||||
M: tuple pprint-delims drop \ T{ \ } ;
|
||||
M: wrapper pprint-delims drop \ W{ \ } ;
|
||||
|
@ -287,6 +288,9 @@ M: cons-state pprint*
|
|||
] dip pprint-word block>
|
||||
] check-recursion ;
|
||||
|
||||
M: +nil+ pprint*
|
||||
<flow pprint-delims [ pprint-word ] bi@ block> ;
|
||||
|
||||
: with-extra-nesting-level ( quot -- )
|
||||
nesting-limit [ dup [ 1 + ] [ f ] if* ] change
|
||||
[ nesting-limit set ] curry finally ; inline
|
||||
|
|
Loading…
Reference in New Issue