Rémi Bernon (@rbernon) commented about tools/widl/parser.y:
tVOID { $$ = type_new_void(); }
| base_type { $$ = $1; } | enumdef { $$ = $1; }
- | tENUM aIDENTIFIER { $$ = type_new_enum($2, current_namespace, FALSE, NULL); }
| structdef { $$ = $1; }| tENUM typename { $$ = type_new_enum($2, current_namespace, FALSE, NULL); }
- | tSTRUCT aIDENTIFIER { $$ = type_new_struct($2, current_namespace, FALSE, NULL); }
| uniondef { $$ = $1; }| tSTRUCT typename { $$ = type_new_struct($2, current_namespace, FALSE, NULL); }
- | tUNION aIDENTIFIER { $$ = type_new_nonencapsulated_union($2, current_namespace, FALSE, NULL); }
| tSAFEARRAY '(' type ')' { $$ = make_safearray($3); } | aKNOWNTYPE { $$ = find_type_or_error(current_namespace, $1); } ;| tUNION typename { $$ = type_new_nonencapsulated_union($2, current_namespace, FALSE, NULL); }
As you're changing tabs into space, could you fix them in the entire `unqualified_type` rule?