Update grammar.md

This commit is contained in:
James Napora 2022-02-19 16:54:21 -08:00 committed by GitHub
parent 3c42b3a013
commit 2e7df8cfa8
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,8 +68,8 @@ SingletonType = STRING | 'true' | 'false'
Type = Type =
SimpleType ['?'] | SimpleType ['?'] |
SimpleType ['|' Type] | Type ['|' Type] |
SimpleType ['&' Type] Type ['&' Type]
GenericTypePackParameter = NAME '...' ['=' (TypePack | VariadicTypePack | GenericTypePack)] GenericTypePackParameter = NAME '...' ['=' (TypePack | VariadicTypePack | GenericTypePack)]
GenericTypeParameterList = NAME ['=' Type] [',' GenericTypeParameterList] | GenericTypePackParameter {',' GenericTypePackParameter} GenericTypeParameterList = NAME ['=' Type] [',' GenericTypeParameterList] | GenericTypePackParameter {',' GenericTypePackParameter}