From 077fe6069a37b76a89c32687d2e8a4a58ddabb54 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Tue, 2 May 2023 15:14:02 +0100 Subject: [PATCH] Fix type --- docs/_pages/grammar.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}