mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix ? and type surrounded by parens
This commit is contained in:
parent
62481d1dd5
commit
f3c0fea22e
1 changed files with 3 additions and 2 deletions
|
@ -68,9 +68,10 @@ SimpleType =
|
||||||
SingletonType = STRING | 'true' | 'false'
|
SingletonType = STRING | 'true' | 'false'
|
||||||
|
|
||||||
Type =
|
Type =
|
||||||
SimpleType ['?'] |
|
Type ['?'] |
|
||||||
Type ['|' Type] |
|
Type ['|' Type] |
|
||||||
Type ['&' Type]
|
Type ['&' Type] |
|
||||||
|
'(' Type ')'
|
||||||
|
|
||||||
GenericTypePackParameter = NAME '...'
|
GenericTypePackParameter = NAME '...'
|
||||||
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}
|
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}
|
||||||
|
|
Loading…
Add table
Reference in a new issue