redex: fix generate-term error messages
This commit is contained in:
parent
b6e4bbdbc8
commit
601640c3b1
|
@ -329,7 +329,8 @@
|
|||
(when (keyword? k)
|
||||
(unless (member k '(#:satisfying #:source #:attempt-num #:retries #:i-th))
|
||||
(raise-syntax-error 'generate-term "unknown keyword" stx x))))))
|
||||
(define form-name (syntax-e #'orig-name))
|
||||
(define form-name (with-syntax ([(_ orig-name . args) stx])
|
||||
(syntax-e #'orig-name)))
|
||||
(syntax-case stx ()
|
||||
[(_ orig-name lang pat #:i-th . rest)
|
||||
(with-syntax ([(pattern (vars ...) (vars/ellipses ...))
|
||||
|
|
Loading…
Reference in New Issue
Block a user