]> gitweb.factorcode.org Git - factor.git/commitdiff
prettyprint.backend: add 1 to nesting-limit while pprinting hashtables 'cause H{...
authorJoe Groff <arcata@gmail.com>
Mon, 14 Jun 2010 23:12:48 +0000 (16:12 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 16 Jun 2010 21:23:28 +0000 (16:23 -0500)
basis/prettyprint/backend/backend.factor

index 7d0cb4057673bb8346b33c7f7819c38a9ac3649a..201a1c28d23650f36530152143ca22817d67e4f3 100644 (file)
@@ -226,7 +226,9 @@ M: object pprint-object ( obj -- )
 M: object pprint* pprint-object ;
 M: vector pprint* pprint-object ;
 M: byte-vector pprint* pprint-object ;
-M: hashtable pprint* pprint-object ;
+M: hashtable pprint*
+    nesting-limit inc
+    [ pprint-object ] [ nesting-limit dec ] [ ] cleanup ;
 M: curry pprint* pprint-object ;
 M: compose pprint* pprint-object ;
 M: hash-set pprint* pprint-object ;