Commit 645d4596 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

vbscript: Added support for rem statement-like comments.

parent d0ae4c47
...@@ -319,7 +319,9 @@ static int parse_next_token(void *lval, parser_ctx_t *ctx) ...@@ -319,7 +319,9 @@ static int parse_next_token(void *lval, parser_ctx_t *ctx)
int ret = check_keywords(ctx); int ret = check_keywords(ctx);
if(!ret) if(!ret)
return parse_identifier(ctx, lval); return parse_identifier(ctx, lval);
return ret; if(ret != tREM)
return ret;
c = '\'';
} }
switch(c) { switch(c) {
......
...@@ -611,6 +611,8 @@ Call ok(funcCalled = "terminate", "funcCalled = " & funcCalled) ...@@ -611,6 +611,8 @@ Call ok(funcCalled = "terminate", "funcCalled = " & funcCalled)
x = "following ':' is correct syntax" : x = "following ':' is correct syntax" :
x = "following ':' is correct syntax" :: : x = "following ':' is correct syntax" :: :
:: x = "also correct syntax" :: x = "also correct syntax"
rem another ugly way for comments
x = "rem as simplestatement" : rem rem comment
: :
Set obj = new EmptyClass Set obj = new EmptyClass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment