Skip to content

Commit

Permalink
fix GenericTypeListWithDefaults rule in the grammar (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink authored Jul 9, 2024
1 parent bdc549e commit 31dd6c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _pages/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' Gen
GenericTypePackParameterWithDefault = NAME '...' '=' (TypePack | VariadicTypePack | GenericTypePack)
GenericTypeListWithDefaults =
GenericTypeList {',' GenericTypePackParameterWithDefault} |
NAME {',' NAME} {',' NAME '=' Type} {',' GenericTypePackParameterWithDefault} |
NAME '=' Type {',' GenericTypePackParameterWithDefault} |
NAME ['=' Type] [',' GenericTypeListWithDefaults] |
GenericTypePackParameterWithDefault {',' GenericTypePackParameterWithDefault}
TypeList = Type [',' TypeList] | '...' Type
Expand Down

0 comments on commit 31dd6c5

Please sign in to comment.