Skip to content

Commit 0497c06

Browse files
committed
feat: allow annotations before the spread parameter ellipsis
1 parent 04a649d commit 0497c06

File tree

5 files changed

+26661
-26519
lines changed

5 files changed

+26661
-26519
lines changed

grammar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ module.exports = grammar({
12401240
optional($.modifiers),
12411241
$._unannotated_type,
12421242
'...',
1243+
repeat($._annotation),
12431244
$.variable_declarator,
12441245
),
12451246

src/grammar.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)