From 4b90c10f13497112429cd4395bf25e4f0f92048d Mon Sep 17 00:00:00 2001 From: Federico Cassano Date: Wed, 2 Aug 2023 12:13:07 -0700 Subject: [PATCH] Add "array" type to table --- docs/_pages/grammar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/grammar.md b/docs/_pages/grammar.md index 53e1bfdd..baf756ed 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -93,6 +93,6 @@ TableIndexer = '[' Type ']' ':' Type TableProp = NAME ':' Type TablePropOrIndexer = TableProp | TableIndexer PropList = TablePropOrIndexer {fieldsep TablePropOrIndexer} [fieldsep] -TableType = '{' [PropList] '}' +TableType = '{' [(PropList | Type)] '}' FunctionType = ['<' GenericTypeList '>'] '(' [BoundTypeList] ')' '->' ReturnType ```