Bug #732
While without Wend, For without Next, If without End If display incorrect errors in the AOZ Messages (but a mostly correct message on the JavaScript console)
Start date:
04/23/2021
Due date:
% Done:
0%
Estimated time:
1:00 h
Affected version:
Description
For example:
If true x=1 Else x=2 End
The resulting error message in AOZ Messages is:
Compiling %1 Generating code... Error: %1 at line 0, column 2, in file IfEndIf.aoz Task failed, no code generated...
On the JavaScript console, however, I get:
/Users/USERNAME/Documents/My AOZ Applications/Syntax_Error/Syntax_Error.aoz:0:2: error: If without endif
...which is almost right except that it points to line 0 as the error line. (should be 1)
I get similar results for While without Wend, For without Next, etc.