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>
%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
+++ /dev/null
-xkb_keymap {
- xkb_keycodes { include "evdev+aliases(qwerty)" };
- xkb_types { include "complete" };
- xkb_compat { include "complete" };
- xkb_symbols { include "pc+us" };
- xkb_geometry { include "pc(pc105)" };
-};
-
-default xkb_keymap {
- xkb_keycodes { include "evdev+aliases(qwertz)" };
- xkb_types { include "complete" };
- xkb_compat { include "complete" };
- xkb_symbols { include "pc+de" };
- xkb_geometry { include "pc(pc105)" };
-};
struct xkb_context *ctx = test_get_context();
assert(test_file(ctx, "keymaps/basic.xkb"));
- /* XXX check we actually get qwertz here ... */
- assert(test_file(ctx, "keymaps/default.xkb"));
assert(test_file(ctx, "keymaps/comprehensive-plus-geom.xkb"));
assert(test_file(ctx, "keymaps/no-types.xkb"));