Commit e240603d authored by Christian Hergert's avatar Christian Hergert

parser: handle foo.version explicitly

Otherwise, we run into a problem were version is treated as a
keyword, which is not what we want.
parent 943f9af1
......@@ -162,6 +162,9 @@ exp: exp CMP exp {
| exp '.' NAME {
$$ = tmpl_expr_new_getattr ($1, $3);
}
| exp '.' VERSION {
$$ = tmpl_expr_new_getattr ($1, "version");
}
| exp '.' NAME '=' exp {
$$ = tmpl_expr_new_setattr ($1, $3, $5);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment