diff --git a/src/cmdparse.y b/src/cmdparse.y index 61903398..a540efed 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -171,6 +171,7 @@ char *parse_cmd(const char *new) { %token NUMBER "" %type direction +%type split_direction %type level %type boolean %type border_style @@ -526,7 +527,7 @@ fullscreen: ; split: - TOK_SPLIT direction + TOK_SPLIT split_direction { /* TODO: use matches */ printf("splitting in direction %c\n", $2); @@ -536,7 +537,7 @@ split: } ; -direction: +split_direction: TOK_HORIZONTAL { $$ = 'h'; } | 'h' { $$ = 'h'; } | TOK_VERTICAL { $$ = 'v'; }