aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-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);