File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -354,13 +354,14 @@ module.exports = grammar({
354
354
'try' ,
355
355
':' ,
356
356
field ( 'body' , $ . _suite ) ,
357
- repeat ( choice ( $ . except_clause , $ . except_group_clause ) ) ,
357
+ repeat ( $ . except_clause ) ,
358
358
optional ( $ . else_clause ) ,
359
359
optional ( $ . finally_clause ) ,
360
360
) ,
361
361
362
362
except_clause : $ => seq (
363
363
'except' ,
364
+ optional ( '*' ) ,
364
365
optional ( seq (
365
366
field ( 'value' , $ . expression ) ,
366
367
optional ( seq (
@@ -372,19 +373,6 @@ module.exports = grammar({
372
373
$ . _suite ,
373
374
) ,
374
375
375
- except_group_clause : $ => seq (
376
- 'except*' ,
377
- seq (
378
- $ . expression ,
379
- optional ( seq (
380
- 'as' ,
381
- $ . expression ,
382
- ) ) ,
383
- ) ,
384
- ':' ,
385
- $ . _suite ,
386
- ) ,
387
-
388
376
finally_clause : $ => seq (
389
377
'finally' ,
390
378
':' ,
You can’t perform that action at this time.
0 commit comments