diff options
author | kspillner | 2015-05-17 04:39:50 +0000 |
---|---|---|
committer | kspillner | 2015-05-17 04:39:50 +0000 |
commit | a72fb08e8971eb59e91e948ed38e5cebaa6f3bf7 (patch) | |
tree | ee3bc693f6c194f496d70576a008c6a0dbfd6ac5 | |
parent | b7b7dc027b02665ffd0e32ed1ab04dbfa98b0a02 (diff) | |
download | cwm-a72fb08e8971eb59e91e948ed38e5cebaa6f3bf7.tar.gz |
Fix autogroup so name,class doesn't need to be quoted.
ok okan@ on an older version of this diff
Diffstat (limited to '')
-rw-r--r-- | parse.y | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.63 2015/05/17 04:34:01 kspillner Exp $ */ +/* $OpenBSD: parse.y,v 1.64 2015/05/17 04:39:50 kspillner Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -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); |