mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix the fix
This commit is contained in:
parent
b165bbc9aa
commit
832a590cce
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue