Allow empty table type

This commit is contained in:
JohnnyMorganz 2023-05-02 13:19:55 +01:00
parent 1dbd90ca62
commit 62481d1dd5

View file

@ -88,6 +88,6 @@ TableIndexer = '[' Type ']' ':' Type
TableProp = NAME ':' Type
TablePropOrIndexer = TableProp | TableIndexer
PropList = TablePropOrIndexer {fieldsep TablePropOrIndexer} [fieldsep]
TableType = '{' PropList '}'
TableType = '{' [PropList] '}'
FunctionType = ['<' GenericTypeList '>'] '(' [TypeList] ')' '->' ReturnType
```