From d281267ed578456f1bc200042d25d67c27bdc5f1 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Thu, 2 Dec 2021 11:19:03 +0000 Subject: [PATCH] Use bindinglist for local declaration and for loop --- docs/_pages/grammar.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_pages/grammar.md b/docs/_pages/grammar.md index 251db42d..f2e90892 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -15,10 +15,10 @@ stat ::= varlist `=' explist | repeat block until exp | if exp then block {elseif exp then block} [else 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 | local function Name funcbody | - local namelist [`=' explist] | + local bindinglist [`=' explist] | [export] type Name [`<' GenericTypeList `>'] `=' typeannotation laststat ::= return [explist] | break | continue