mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Use bindinglist for local declaration and for loop
This commit is contained in:
parent
033e7a743b
commit
d281267ed5
1 changed files with 2 additions and 2 deletions
|
@ -15,10 +15,10 @@ stat ::= varlist `=' explist |
|
||||||
repeat block until exp |
|
repeat block until exp |
|
||||||
if exp then block {elseif exp then block} [else block] end |
|
if exp then block {elseif exp then block} [else block] end |
|
||||||
for binding `=' exp `,' exp [`,' exp] do block end |
|
for binding `=' exp `,' exp [`,' exp] do block end |
|
||||||
for namelist in explist do block end |
|
for bindinglist in explist do block end |
|
||||||
function funcname funcbody |
|
function funcname funcbody |
|
||||||
local function Name funcbody |
|
local function Name funcbody |
|
||||||
local namelist [`=' explist] |
|
local bindinglist [`=' explist] |
|
||||||
[export] type Name [`<' GenericTypeList `>'] `=' typeannotation
|
[export] type Name [`<' GenericTypeList `>'] `=' typeannotation
|
||||||
|
|
||||||
laststat ::= return [explist] | break | continue
|
laststat ::= return [explist] | break | continue
|
||||||
|
|
Loading…
Add table
Reference in a new issue