Fixes bug 177638: keyword argument in syntax-rules should not be
used in substitutions
This commit is contained in:
parent
d162c1cc25
commit
097ca03e47
|
@ -1 +1 @@
|
||||||
1273
|
1275
|
||||||
|
|
|
@ -1414,7 +1414,13 @@
|
||||||
(bless `(lambda (x)
|
(bless `(lambda (x)
|
||||||
(syntax-case x ,lits
|
(syntax-case x ,lits
|
||||||
,@(map (lambda (pat tmp)
|
,@(map (lambda (pat tmp)
|
||||||
`(,pat (syntax ,tmp)))
|
(syntax-match pat ()
|
||||||
|
[(_ . rest)
|
||||||
|
`((g . ,rest) (syntax ,tmp))]
|
||||||
|
[_
|
||||||
|
(syntax-violation #f
|
||||||
|
"invalid syntax-rules pattern"
|
||||||
|
e pat)]))
|
||||||
pat* tmp*)))))))))
|
pat* tmp*)))))))))
|
||||||
|
|
||||||
(define quasiquote-macro
|
(define quasiquote-macro
|
||||||
|
|
Loading…
Reference in New Issue