mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
syntax change
This commit is contained in:
parent
c02a8ab351
commit
edbb7a826c
1 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ end
|
||||||
```
|
```
|
||||||
The problems that this solution has are:<br>
|
The problems that this solution has are:<br>
|
||||||
Messy: In a bigger scale this will get messy and confusing.<br>
|
Messy: In a bigger scale this will get messy and confusing.<br>
|
||||||
Uneeded checks: Why to do those checks when we could just jump out directly?
|
Uneeded checks: Why do those checks when we could just jump out directly?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ while true do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
LoopEnd: -- Could follow Lua syntax(:LABEL:)
|
:LoopEnd: -- Could follow Lua syntax(:LABEL:)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,12 +62,12 @@ LoopEnd: -- Could follow Lua syntax(:LABEL:)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
`<ConstantString>:` Sets a label<br>
|
`:<ConstantString>:` Sets a label<br>
|
||||||
Notes:<br>
|
Notes:<br>
|
||||||
A label can't be used in another scope
|
A label can't be used in another scope
|
||||||
```lua
|
```lua
|
||||||
function A()
|
function A()
|
||||||
FunctionStart:
|
:FunctionStart:
|
||||||
|
|
||||||
do
|
do
|
||||||
if Y == Y then
|
if Y == Y then
|
||||||
|
|
Loading…
Add table
Reference in a new issue