vbscript: Added support for rem statement-like comments.

This commit is contained in:
Jacek Caban 2011-09-20 14:59:07 +02:00 committed by Alexandre Julliard
parent d0ae4c47a9
commit 645d459618
2 changed files with 5 additions and 1 deletions

View File

@ -319,7 +319,9 @@ static int parse_next_token(void *lval, parser_ctx_t *ctx)
int ret = check_keywords(ctx);
if(!ret)
return parse_identifier(ctx, lval);
return ret;
if(ret != tREM)
return ret;
c = '\'';
}
switch(c) {

View File

@ -611,6 +611,8 @@ Call ok(funcCalled = "terminate", "funcCalled = " & funcCalled)
x = "following ':' is correct syntax" :
x = "following ':' is correct syntax" :: :
:: x = "also correct syntax"
rem another ugly way for comments
x = "rem as simplestatement" : rem rem comment
:
Set obj = new EmptyClass