File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ match tuple {
408
408
> _ RangePattern_ :\
409
409
>   ;  ;   ;  ; _ InclusiveRangePattern_ \
410
410
>   ;  ; | _ HalfOpenRangePattern_ \
411
- >   ;  ; | _ ObsoleteRangePattern_
411
+ >   ;  ; | _ ObsoleteRangePattern_ [ ^ obsolete-range-edition ]
412
412
>
413
413
> _ InclusiveRangePattern_ :\
414
414
>   ;  ;   ;  ; _ RangePatternBound_ ` ..= ` _ RangePatternBound_
@@ -426,6 +426,8 @@ match tuple {
426
426
>   ;  ; | ` - ` <sup >?</sup > [ FLOAT_LITERAL] \
427
427
>   ;  ; | [ _ PathInExpression_ ] \
428
428
>   ;  ; | [ _ QualifiedPathInExpression_ ]
429
+ >
430
+ > [ ^ obsolete-range-edition ] : Beginning with the 2021 edition, _ ObsoleteRangePattern_ is not allowed.
429
431
430
432
Range patterns match values within the range defined by their bounds. A range pattern may be
431
433
closed or half-open. A range pattern is closed if it has both a lower and an upper bound, and
You can’t perform that action at this time.
0 commit comments