Fix autogroup so name,class doesn't need to be quoted.

ok okan@ on an older version of this diff
This commit is contained in:
kspillner 2015-05-17 04:39:50 +00:00
parent d328f63c7d
commit b9db4486da

11
parse.y
View File

@ -157,6 +157,17 @@ main : FONTNAME STRING {
conf_autogroup(conf, $2, NULL, $3);
free($3);
}
| AUTOGROUP NUMBER STRING ',' STRING {
if ($2 < 0 || $2 > 9) {
yyerror("invalid autogroup");
free($3);
free($5);
YYERROR;
}
conf_autogroup(conf, $2, $3, $5);
free($3);
free($5);
}
| IGNORE STRING {
conf_ignore(conf, $2);
free($2);