We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f9e69 commit 29e3bc2Copy full SHA for 29e3bc2
1 file changed
grammar.js
@@ -354,13 +354,14 @@ module.exports = grammar({
354
'try',
355
':',
356
field('body', $._suite),
357
- repeat(choice($.except_clause, $.except_group_clause)),
+ repeat($.except_clause),
358
optional($.else_clause),
359
optional($.finally_clause),
360
),
361
362
except_clause: $ => seq(
363
'except',
364
+ optional('*'),
365
optional(seq(
366
field('value', $.expression),
367
@@ -372,19 +373,6 @@ module.exports = grammar({
372
373
$._suite,
374
375
- except_group_clause: $ => seq(
376
- 'except*',
377
- seq(
378
- $.expression,
379
- optional(seq(
380
- 'as',
381
382
- )),
383
- ),
384
- ':',
385
- $._suite,
386
387
-
388
finally_clause: $ => seq(
389
'finally',
390
0 commit comments