From: Chris Hanson Date: Mon, 21 Jan 2019 04:22:28 +0000 (-0800) Subject: Don't return open block at top level when syntaxing a single form. X-Git-Tag: mit-scheme-pucked-10.1.10~6^2~30 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=71d9d70415cc836d245175a22bf9b937ae26ab15;p=mit-scheme.git Don't return open block at top level when syntaxing a single form. --- diff --git a/src/runtime/syntax.scm b/src/runtime/syntax.scm index 4aaca52e4..4bde7b012 100644 --- a/src/runtime/syntax.scm +++ b/src/runtime/syntax.scm @@ -47,7 +47,12 @@ USA. (make-settable-parameter #f)) (define (syntax form environment) - (syntax* (list form) environment)) + (let ((result (syntax* (list form) environment))) + (if (scode-open-block? result) + (unscan-defines (scode-open-block-names result) + (scode-open-block-declarations result) + (scode-open-block-actions result)) + result))) (define (syntax* forms environment) (guarantee list? forms 'syntax*)