[PATCH 1/2] vbscript: Treat \r as a newline separator.

Zebediah Figura z.figura12 at gmail.com
Tue May 22 10:01:11 CDT 2018


On 22/05/18 03:41, Jacek Caban wrote:
> Signed-off-by: Jacek Caban <jacek at codeweavers.com>
> 
> 
> On 05/22/2018 03:32 AM, Zebediah Figura wrote:
>> @@ -421,6 +421,7 @@ static int parse_next_token(void *lval, parser_ctx_t *ctx)
>>  
>>      switch(c) {
>>      case '\n':
>> +    case '\r':
>>          ctx->ptr++;
>>          return tNL;
>>      case '\'':
> 
> 
> It would be nice to handle that in comment_line() as well. Otherwise if
> script uses \r instead of \n, a comment will consume all the script.
> 
> Thanks,
> Jacek
> 
> 

Thanks; I've sent an updated patch.



More information about the wine-devel mailing list