syntax/parse: fix ~between; closes #2856
Please merge to release branch.
This commit is contained in:
parent
edfcec8211
commit
ca2eafbfc4
|
@ -16,6 +16,7 @@
|
||||||
bound
|
bound
|
||||||
s=
|
s=
|
||||||
a=
|
a=
|
||||||
|
convert-compile-time-error
|
||||||
convert-syntax-error)
|
convert-syntax-error)
|
||||||
|
|
||||||
#|
|
#|
|
||||||
|
|
|
@ -1054,3 +1054,8 @@
|
||||||
[(_ (~or (~seq a b c (~parse (d e f) #'(a b c)))
|
[(_ (~or (~seq a b c (~parse (d e f) #'(a b c)))
|
||||||
(~seq x:id ...)))
|
(~seq x:id ...)))
|
||||||
(void)])))
|
(void)])))
|
||||||
|
|
||||||
|
;; from @jjsimpso, ~between pattern (10/2019)
|
||||||
|
(convert-compile-time-error
|
||||||
|
(syntax-parse #'(1 2 'bar 4 5 'bar 'foo)
|
||||||
|
[((~seq (~between x:nat 2 2) ... z) ...+ expr) (void)]))
|
||||||
|
|
|
@ -1176,7 +1176,7 @@
|
||||||
[name
|
[name
|
||||||
(options-select-value chunks '#:name #:default #'#f)])
|
(options-select-value chunks '#:name #:default #'#f)])
|
||||||
(list (create-ehpat head
|
(list (create-ehpat head
|
||||||
(make rep:bounds #'min #'max
|
(make rep:bounds minN maxN
|
||||||
name too-few-msg too-many-msg)
|
name too-few-msg too-many-msg)
|
||||||
#'p)
|
#'p)
|
||||||
#'p)))]))
|
#'p)))]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user