28 Nov
2022
28 Nov
'22
11:24 a.m.
Jacek Caban (@jacek) commented about dlls/vbscript/parser.y:
| tON tERROR tRESUME tNEXT { $$ = new_onerror_statement(ctx, @$, TRUE); CHECK_ERROR; } | tON tERROR tGOTO '0' { $$ = new_onerror_statement(ctx, @$, FALSE); CHECK_ERROR; } | tCONST ConstDeclList { $$ = new_const_statement(ctx, @$, $2); CHECK_ERROR; } + | tPRIVATE tCONST ConstDeclList { $$ = new_const_statement(ctx, @$, $3); CHECK_ERROR; }
It seems that it's allowed only in global code, not inside functions, so it should probably be handled by GlobalDimDeclaration rule. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1561#note_17639