mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Extract out singleton types
This commit is contained in:
parent
39f85e2c9c
commit
a36d5f7b30
1 changed files with 3 additions and 3 deletions
|
@ -58,14 +58,14 @@ unop = '-' | 'not' | '#'
|
|||
|
||||
SimpleType =
|
||||
'nil' |
|
||||
STRING |
|
||||
'true' |
|
||||
'false' |
|
||||
SingletonType |
|
||||
NAME ['.' NAME] [ '<' [TypeParams] '>' ] |
|
||||
'typeof' '(' exp ')' |
|
||||
TableType |
|
||||
FunctionType
|
||||
|
||||
SingletonType = STRING | 'true' | 'false'
|
||||
|
||||
Type =
|
||||
SimpleType ['?'] |
|
||||
SimpleType ['|' Type] |
|
||||
|
|
Loading…
Add table
Reference in a new issue