mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
vbscript: Accept "><" as inequality operator.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
6f1d38bdba
commit
9f77009aa5
|
@ -500,9 +500,13 @@ static int parse_next_token(void *lval, unsigned *loc, parser_ctx_t *ctx)
|
|||
}
|
||||
return '<';
|
||||
case '>':
|
||||
if(*++ctx->ptr == '=') {
|
||||
switch(*++ctx->ptr) {
|
||||
case '=':
|
||||
ctx->ptr++;
|
||||
return tGTEQ;
|
||||
case '<':
|
||||
ctx->ptr++;
|
||||
return tNEQ;
|
||||
}
|
||||
return '>';
|
||||
default:
|
||||
|
|
|
@ -181,6 +181,10 @@ Call ok(1 <= 2, "! 1 <= 2")
|
|||
Call ok(2 <= 2, "! 2 <= 2")
|
||||
Call ok(1 =< 2, "! 1 =< 2")
|
||||
Call ok(2 =< 2, "! 2 =< 2")
|
||||
Call ok(not (2 >< 2), "2 >< 2")
|
||||
Call ok(2 >< 1, "! 2 >< 1")
|
||||
Call ok(not (2 <> 2), "2 <> 2")
|
||||
Call ok(2 <> 1, "! 2 <> 1")
|
||||
|
||||
Call ok(isNull(0 = null), "'(0 = null)' is not null")
|
||||
Call ok(isNull(null = 1), "'(null = 1)' is not null")
|
||||
|
|
Loading…
Reference in a new issue