diff --git a/docs/_pages/grammar.md b/docs/_pages/grammar.md index 2062c297..5903c6ee 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -64,13 +64,13 @@ SimpleType = 'typeof' '(' exp ')' | TableType | FunctionType | - '(' SimpleType ')' + '(' Type ')' SingletonType = STRING | 'true' | 'false' UnionSuffix = {'?'} ['|' SimpleType] IntersectionSuffix = ['&' SimpleType] -Type = SimpleType {UnionSuffix | IntersectionSuffix} +Type = SimpleType {UnionSuffix} | SimpleType {IntersectionSuffix} GenericTypePackParameter = NAME '...' GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}