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

Jacek Caban jacek at codeweavers.com
Tue May 22 03:41:49 CDT 2018


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



More information about the wine-devel mailing list