wrc: Accept hyphens in identificators.

It is a bit more permissive than it should be, hyphens should be allowed
in resource names, but not in filenames.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-06-21 11:42:42 +02:00 committed by Alexandre Julliard
parent 14da5bfbd5
commit 9269562a3a

View file

@ -402,7 +402,7 @@ static unsigned long xstrtoul(const char *nptr, char **endptr, int base)
0[oO][0-7]+[lL]? { parser_lval.num = xstrtoul(yytext+2, 0, 8);
return (yytext[yyleng-1] == 'L' || yytext[yyleng-1] == 'l') ? tLNUMBER : tNUMBER; }
[A-Za-z_0-9./\\]+ {
[A-Za-z_0-9./\\][A-Za-z_0-9./\\\-]* {
struct keyword *tok = iskeyword(yytext);
if(tok)