read-print: Properly indent ‘parameterize’.
Fixes <https://issues.guix.gnu.org/65427>. * guix/read-print.scm (%special-forms): Add ‘parameterize’. * tests/read-print.scm: Add test. Reported-by: Maxime Devos <maximedevos@telenet.be> Change-Id: I922bffc527ade539cf2eb304acb25bc9c705a459master
parent
9363ec208b
commit
2c5fb13a05
|
@ -330,6 +330,7 @@ expressions and blanks that were read."
|
||||||
('add-after '(((modify-phases) . 3)))
|
('add-after '(((modify-phases) . 3)))
|
||||||
('add-before '(((modify-phases) . 3)))
|
('add-before '(((modify-phases) . 3)))
|
||||||
('replace '(((modify-phases) . 2))) ;different from 'modify-inputs'
|
('replace '(((modify-phases) . 2))) ;different from 'modify-inputs'
|
||||||
|
('parameterize 2)
|
||||||
('substitute* 2)
|
('substitute* 2)
|
||||||
('substitute-keyword-arguments 2)
|
('substitute-keyword-arguments 2)
|
||||||
('call-with-input-file 2)
|
('call-with-input-file 2)
|
||||||
|
|
|
@ -173,6 +173,11 @@ expressions."
|
||||||
'odd)
|
'odd)
|
||||||
(else #f))")
|
(else #f))")
|
||||||
|
|
||||||
|
(test-pretty-print "\
|
||||||
|
(parameterize ((a 1)
|
||||||
|
(b 2))
|
||||||
|
(call f g h))")
|
||||||
|
|
||||||
(test-pretty-print "\
|
(test-pretty-print "\
|
||||||
#~(string-append #$coreutils \"/bin/uname\")")
|
#~(string-append #$coreutils \"/bin/uname\")")
|
||||||
|
|
||||||
|
|
Reference in New Issue