genius257 / autoit3-pegjs

A PEG.js parser for the AutoIt3 language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resizing of multiple arrays via single ReDim not allowed

genius257 opened this issue · comments

Global $a1[1], $a2[2]
ReDim $a1[2], $a2[1]

result:

Line 2, column 13: Expected " ", "#", "#include-once", "$", "(", "+", "-", ";", "@", "Const", "ContinueCase", "ContinueLoop", "Default", "Dim", "Do", "Enum", "Exit", "ExitLoop", "False", "For", "Func", "Global", "If", "Local", "Not", "Null", "Redim", "Return", "Select", "Static", "Switch", "True", "Volatile", "While", "With", "[", "\t", end of input, end of line, identifier, number, or string but "," found.

this is not documented in the official AutoIt3 documentation, but found via example file: Include\Visa.au3 on line 280

Fixed with commit c9aac00