Commit a46facfd authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

widl: Group <ATTR> tokens together.

parent 832d6985
......@@ -199,12 +199,16 @@ struct uuid *parse_uuid(const char *u)
<SQUOTE>\\\' addcchar(yytext[1]);
<QUOTE,WSTRQUOTE,SQUOTE>\\. addcchar('\\'); addcchar(yytext[1]);
<QUOTE,WSTRQUOTE,SQUOTE>. addcchar(yytext[0]);
<ATTR>\] yy_pop_state(); return ']';
<ATTR>{cident} return attr_token(yytext, yylval);
<ATTR>{uuid} {
yylval->uuid = parse_uuid(yytext);
return aUUID;
}
<ATTR>{
\] { yy_pop_state(); return ']'; }
{cident} { return attr_token( yytext, yylval ); }
{uuid} {
yylval->uuid = parse_uuid( yytext );
return aUUID;
}
}
<INITIAL>{
^{ws}*\#{ws}*pragma{ws}+ { yy_push_state( PP_PRAGMA ); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment