Changed #:macro to #:expression in define-match-expander.
svn: r3945
This commit is contained in:
parent
24880e18a4
commit
0cf62c196a
|
@ -25,7 +25,7 @@
|
|||
(cond
|
||||
[(not (keyword? v))
|
||||
(match:syntax-err stx-v "Argument must be a keyword")]
|
||||
[(not (member v '(#:macro #:plt-match #:match)))
|
||||
[(not (member v '(#:expression #:plt-match #:match)))
|
||||
(match:syntax-err stx-v "Keyword argument is not a correct keyword")]
|
||||
[else
|
||||
(loop (cddr args)
|
||||
|
@ -39,7 +39,7 @@
|
|||
(with-syntax
|
||||
([match-xform (lookup #:match parsed-args)]
|
||||
[plt-match-xform (lookup #:plt-match parsed-args)]
|
||||
[std-xform (or (lookup #:macro parsed-args)
|
||||
[std-xform (or (lookup #:expression parsed-args)
|
||||
#'(lambda (stx)
|
||||
(match:syntax-err stx "This match expander must be used inside match")))])
|
||||
(if (identifier? #'std-xform)
|
||||
|
|
Loading…
Reference in New Issue
Block a user