56e6d271
by Francis De Brabandere at 2026-04-06T18:03:08+02:00
vbscript: Fix error character positions for Exit and Dim statements.
For invalid Exit statements (e.g. Exit Do outside a Do loop), point the
error position at the keyword after Exit (Do/For/Function/Property/Sub)
instead of at Exit itself, matching Windows.
For duplicate Dim declarations, store the identifier location in
dim_decl_t and use it as the error position, so the error points at
the duplicate name instead of the Dim keyword.