File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -1388,10 +1388,15 @@ module.exports = grammar({
1388
1388
$ . _literal_pattern ,
1389
1389
$ . _path ,
1390
1390
) ,
1391
- choice ( '...' , '..=' ) ,
1392
1391
choice (
1393
- $ . _literal_pattern ,
1394
- $ . _path ,
1392
+ seq (
1393
+ choice ( '...' , '..=' ) ,
1394
+ choice (
1395
+ $ . _literal_pattern ,
1396
+ $ . _path ,
1397
+ ) ,
1398
+ ) ,
1399
+ '..' ,
1395
1400
) ,
1396
1401
) ,
1397
1402
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ match x {
162
162
Some(1 ... 5) => a,
163
163
a @ b...c => a,
164
164
a @ b..=c => a,
165
+ d.. => a,
165
166
}
166
167
167
168
--------------------------------------------------------------------------------
@@ -215,6 +216,11 @@ match x {
215
216
(range_pattern
216
217
(identifier)
217
218
(identifier))))
219
+ value: (identifier))
220
+ (match_arm
221
+ pattern: (match_pattern
222
+ (range_pattern
223
+ (identifier)))
218
224
value: (identifier))))))
219
225
220
226
================================================================================
You can’t perform that action at this time.
0 commit comments