ac6b8fb0
by Francis De Brabandere at 2026-04-17T18:32:42+02:00
vbscript: Return specific error codes for missing keywords in parser.
Add error productions in the bison grammar for five cases where a
specific keyword is expected after a recognized prefix:
- Expected '=' after identifier in Const declaration (error 1011)
- Expected 'To' after expression in For loop (error 1013)
- Expected 'Then' after expression in If statement (error 1017)
- Expected 'Case' after Select (error 1021)
- Expected 'In' after identifier in For Each loop (error 1046)
Previously these all fell through to the generic E_FAIL path in
parser_error(). Now each sets the correct VBSE_EXPECTED_* error code
via MAKE_VBSERROR before aborting the parse.