Pretty-patterns shows words at ends of splatterns
This commit is contained in:
parent
9ddb43a30f
commit
a6c899a85f
|
@ -129,7 +129,7 @@
|
|||
:typed (string (show-patt (get-in x [:data 1])) " as " (show-patt (get-in x [:data 0])))
|
||||
:interpolated (get-in x [:token :lexeme])
|
||||
:string (get-in x [:token :lexeme])
|
||||
:splat (string "..." (when (x :splatted) (show-patt (x :splatted))))
|
||||
:splat (string "..." (when (x :data) (show-patt (x :data))))
|
||||
(error (string "cannot show pattern of unknown type " (x :type)))))
|
||||
|
||||
(defn pretty-patterns [fnn]
|
||||
|
|
Loading…
Reference in New Issue
Block a user