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:
parent
14da5bfbd5
commit
9269562a3a
|
@ -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);
|
0[oO][0-7]+[lL]? { parser_lval.num = xstrtoul(yytext+2, 0, 8);
|
||||||
return (yytext[yyleng-1] == 'L' || yytext[yyleng-1] == 'l') ? tLNUMBER : tNUMBER; }
|
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);
|
struct keyword *tok = iskeyword(yytext);
|
||||||
|
|
||||||
if(tok)
|
if(tok)
|
||||||
|
|
Loading…
Reference in New Issue