From: Francis De Brabandere <francisdb@gmail.com> --- dlls/vbscript/lex.c | 2 +- dlls/vbscript/tests/run.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/vbscript/lex.c b/dlls/vbscript/lex.c index 8e3d41ba4ed..71ecaa43278 100644 --- a/dlls/vbscript/lex.c +++ b/dlls/vbscript/lex.c @@ -386,7 +386,7 @@ static int parse_hex_literal(parser_ctx_t *ctx, LONG *ret) static void skip_spaces(parser_ctx_t *ctx) { - while(*ctx->ptr == ' ' || *ctx->ptr == '\t') + while(*ctx->ptr == ' ' || *ctx->ptr == '\t' || *ctx->ptr == '\v' || *ctx->ptr == '\f') ctx->ptr++; } diff --git a/dlls/vbscript/tests/run.c b/dlls/vbscript/tests/run.c index f1a0320d327..28b164bf601 100644 --- a/dlls/vbscript/tests/run.c +++ b/dlls/vbscript/tests/run.c @@ -3505,6 +3505,13 @@ static void run_tests(void) parse_script_w(L""); parse_script_w(L"' empty ;"); + /* Vertical tab and form feed are valid whitespace separators */ + parse_script_w(L"dim\x0b""x\n"); + parse_script_w(L"dim\x0c""x\n"); + parse_script_w(L"dim\x0b\x0c""x\n"); + parse_script_w(L"x\x0b""=\x0b""1\n"); + parse_script_w(L"x\x0c""=\x0c""1\n"); + SET_EXPECT(global_success_d); SET_EXPECT(global_success_i); parse_script_w(L"reportSuccess"); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10544