rebirth: Properly `quote' strings
Make sure quoted strings are, well, strings---they need their delimiters! * build-aux/bootstrap/rebirth.scm (quote-sexp): Proper handling of strings.master
parent
c3dec75fe7
commit
f183ccb2b0
|
@ -562,7 +562,10 @@
|
|||
;; should not be converted to symbols, as they already are one.
|
||||
(define (quote-sexp sexp)
|
||||
(if (token? sexp)
|
||||
(string-append "Symbol.for('" (sexp->es sexp) "')")
|
||||
(case (token-type sexp)
|
||||
(("string") (sexp->es sexp))
|
||||
(else
|
||||
(string-append "Symbol.for('" (token-value sexp) "')")))
|
||||
(string-append
|
||||
"[" (join "," (map quote-sexp sexp)) "]")))
|
||||
|
||||
|
|
Loading…
Reference in New Issue