syntax/parse: improve minimatch stx errors

This commit is contained in:
Ryan Culpepper 2016-12-07 16:28:50 -05:00
parent bcc8535b78
commit 8e5ccd3239

View File

@ -87,6 +87,8 @@
(let ([xps (cdr (vector->list (struct->vector x)))])
(match-p xps (list p ...) success failure))
failure)))]
[(match-p x pattern success failure)
(raise-syntax-error 'minimatch "bad pattern" #'pattern)]
))
(define-syntax match-p*