[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Comment in localstat is wrong
- From: Xmilia Hermit <xmilia.hermit@...>
- Date: Tue, 20 Oct 2020 13:33:36 +0200
Hi,
I think the comment in localstat is wrong and was not updated since the
name and attribute were swapped.
diff --git a/lparser.c b/lparser.c
index bcdcfb6d..df5995bb 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1752,7 +1752,7 @@ static void checktoclose (LexState *ls, int level) {
static void localstat (LexState *ls) {
- /* stat -> LOCAL ATTRIB NAME {',' ATTRIB NAME} ['=' explist] */
+ /* stat -> LOCAL NAME ATTRIB {',' NAME ATTRIB} ['=' explist] */
FuncState *fs = ls->fs;
int toclose = -1; /* index of to-be-closed variable (if any) */
Vardesc *var; /* last variable */
Regards,
Xmilia