summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-09-30 10:50:38 +0200
committerRan Benita <ran234@gmail.com>2012-09-30 14:20:16 +0200
commit22684cd1dd1fd651803f27f3595e02d16b5df0e8 (patch)
tree8b3aa5b10bb1638635a352646cd57de0e25738c5 /src
parent3b5ada233be2de7e068d27b827b9e1a320791fbe (diff)
downloadxorg-lib-libxkbcommon-22684cd1dd1fd651803f27f3595e02d16b5df0e8.tar.gz
parser: remove XkbCompMapList rule
This rule allows you to put several xkb_keymaps in one file. This doesn't make any sense: only the default/first can ever be used, yet the others are fully parsed as well. Different keymaps should just be put in different files. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/xkbcomp/parser.y10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xkbcomp/parser.y b/src/xkbcomp/parser.y
index 5ffb38b..491e96c 100644
--- a/src/xkbcomp/parser.y
+++ b/src/xkbcomp/parser.y
@@ -172,22 +172,16 @@ _xkbcommon_error(struct YYLTYPE *loc, struct parser_param *param, const char *ms
%type <geom> Keys Key OverlayDecl OverlayKeyList OverlayKey OutlineList OutlineInList
%type <geom> DoodadDecl
%type <file> XkbFile XkbMapConfigList XkbMapConfig
-%type <file> XkbCompositeMap XkbCompMapList
+%type <file> XkbCompositeMap
%%
-XkbFile : XkbCompMapList
+XkbFile : XkbCompositeMap
{ $$ = param->rtrn = $1; }
| XkbMapConfigList
{ $$ = param->rtrn = $1; }
;
-XkbCompMapList : XkbCompMapList XkbCompositeMap
- { $$ = (XkbFile *)AppendStmt(&$1->common, &$2->common); }
- | XkbCompositeMap
- { $$ = $1; }
- ;
-
XkbCompositeMap : OptFlags XkbCompositeType OptMapName OBRACE
XkbMapConfigList
CBRACE SEMI