From f3c0fea22e7a6ea6873ea8283ce9abc9a3d32a5d Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Tue, 2 May 2023 13:27:49 +0100 Subject: [PATCH] Fix ? and type surrounded by parens --- docs/_pages/grammar.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/_pages/grammar.md b/docs/_pages/grammar.md index c9823b39..c296f268 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -68,9 +68,10 @@ SimpleType = SingletonType = STRING | 'true' | 'false' Type = - SimpleType ['?'] | + Type ['?'] | Type ['|' Type] | - Type ['&' Type] + Type ['&' Type] | + '(' Type ')' GenericTypePackParameter = NAME '...' GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}