summaryrefslogtreecommitdiffstats
path: root/src/parser.y
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-14 12:37:36 +0000
committerPatrick McHardy <kaber@trash.net>2014-01-14 12:37:36 +0000
commit7c358b1705ea1b7d2101c39a9c3b9e5773437096 (patch)
treeb687c0ba88f17466dd9bce59fcc6155f60ade5a7 /src/parser.y
parent5e8f8a1807917f92e568437598670b0026462c1c (diff)
Revert "parser: replace "vmap" keyword by "map""
This reverts commit 5e8f8a1807917f92e568437598670b0026462c1c. I missed that this introduces shift-reduce conflicts. Revert for now.
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index faa9a33f..26e71e37 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -150,6 +150,7 @@ static void location_update(struct location *loc, struct location *rhs, int n)
%token DASH "-"
%token AT "@"
%token ARROW "=>"
+%token VMAP "vmap"
%token INCLUDE "include"
%token DEFINE "define"
@@ -1206,7 +1207,7 @@ map_expr : concat_expr MAP expr
}
;
-verdict_map_expr : concat_expr MAP expr
+verdict_map_expr : concat_expr VMAP expr
{
$$ = map_expr_alloc(&@$, $1, $3);
}