vbscript: Added support for rem statement-like comments.
This commit is contained in:
parent
d0ae4c47a9
commit
645d459618
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue