syntax/parse: allow pattern expanders that don't start with tilde

This commit is contained in:
Alex Knauth 2015-09-21 20:46:29 -04:00 committed by Ryan Culpepper
parent d47b96970c
commit 4d703fa2e2

View File

@ -469,7 +469,6 @@
[id
(and (identifier? #'id)
(not-shadowed? #'id)
(not (safe-name? #'id))
(pattern-expander? (syntax-local-value #'id (λ () #f))))
(let* ([proc (pattern-expander-proc (syntax-local-value #'id))]
[introducer (make-syntax-introducer)]
@ -482,7 +481,6 @@
[(id . rst)
(and (identifier? #'id)
(not-shadowed? #'id)
(not (safe-name? #'id))
(pattern-expander? (syntax-local-value #'id (λ () #f))))
(let* ([proc (pattern-expander-proc (syntax-local-value #'id))]
[introducer (make-syntax-introducer)]