From 832a590cce93a6c7cd932a7191f996d34ec5d6c7 Mon Sep 17 00:00:00 2001 From: Federico Cassano Date: Wed, 2 Aug 2023 12:31:18 -0700 Subject: [PATCH] Fix the fix --- 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 9cd22edc..f9d9612d 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -28,7 +28,7 @@ laststat = 'return' [explist] | 'break' | 'continue' funcname = NAME {'.' NAME} [':' NAME] funcbody = ['<' GenericTypeList '>'] '(' [parlist] ')' [':' ReturnType] block 'end' -parlist = bindinglist [',' '...'] | '...' [':' GenericTypePack] +parlist = bindinglist [',' '...'] | '...' [':' (Type | GenericTypePack)] explist = {exp ','} exp namelist = NAME {',' NAME} @@ -93,6 +93,6 @@ TableIndexer = '[' Type ']' ':' Type TableProp = NAME ':' Type TablePropOrIndexer = TableProp | TableIndexer PropList = TablePropOrIndexer {fieldsep TablePropOrIndexer} [fieldsep] -TableType = '{' [(PropList | Type)] '}' +TableType = '{' Type '}' | '{' [PropList] '}' FunctionType = ['<' GenericTypeList '>'] '(' [BoundTypeList] ')' '->' ReturnType ```