From a72fb08e8971eb59e91e948ed38e5cebaa6f3bf7 Mon Sep 17 00:00:00 2001 From: kspillner Date: Sun, 17 May 2015 04:39:50 +0000 Subject: Fix autogroup so name,class doesn't need to be quoted. ok okan@ on an older version of this diff --- parse.y | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 @@ -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); -- cgit v1.2.3-2-gb3c3