Fixed bad bug when a #:save-as chunk contained a ...

This commit is contained in:
Georges Dupéron 2016-09-19 03:12:01 +02:00
parent 57a4d0184d
commit 148ec8da08
2 changed files with 13 additions and 2 deletions

View File

@ -120,7 +120,7 @@
(lambda (stx) #'(chunkref name)))) (lambda (stx) #'(chunkref name))))
(begin-for-syntax (init-chunk-number #'name)))) (begin-for-syntax (init-chunk-number #'name))))
#,(if (attribute save-as) #,(if (attribute save-as)
#'(define-syntax (save-as s) (syntax pre-content)) #'(define-syntax (save-as s) (quote-syntax pre-content))
#'pre-content))))])) #'pre-content))))]))
(define-syntax chunk (make-chunk #'racketblock #t)) (define-syntax chunk (make-chunk #'racketblock #t))

View File

@ -12,8 +12,19 @@
@CHUNK[<values> @CHUNK[<values>
'D] 'D]
@chunk[<values>
'E]
@chunk[<values>
'F]
@CHUNK[<values>
'G]
@CHUNK[<values>
'H]
@chunk[<*> @chunk[<*>
(require rackunit) (require rackunit)
(check-equal? (list <values>) (check-equal? (list <values>)
'(A B C D))] '(A B C D E F G H))]