9f2384a0
by Francis De Brabandere at 2026-04-15T21:59:23+02:00
vbscript: Return correct error codes for missing statement separators.
When a statement and its closing keyword appear on the same line without
a separator (newline or colon), Windows returns specific error codes:
- 1042 (Must be first statement on the line) for End If, End Select
- 1024 (Expected statement) for End While, End Class, Else End If
- 1025 (Expected end of statement) for Wend, Loop
Wine was returning generic E_FAIL (16389) for all of these. Add targeted
error productions in the parser grammar to detect block-closing keywords
following a statement without a separator, and set the appropriate
VBScript error code before aborting.