aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorkspillner2015-05-17 04:39:50 +0000
committerkspillner2015-05-17 04:39:50 +0000
commita72fb08e8971eb59e91e948ed38e5cebaa6f3bf7 (patch)
treeee3bc693f6c194f496d70576a008c6a0dbfd6ac5 /parse.y
parentb7b7dc027b02665ffd0e32ed1ab04dbfa98b0a02 (diff)
downloadcwm-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.y13
1 files changed, 12 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 569c786..472839c 100644
--- a/parse.y
+++ b/parse.y
@@ -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);