[template-glib] parser: handle foo.version explicitly
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] parser: handle foo.version explicitly
- Date: Mon, 23 Oct 2017 21:08:47 +0000 (UTC)
commit e240603d0e2656f410983d47232954dcdb69c640
Author: Christian Hergert <chergert redhat com>
Date: Mon Oct 23 14:08:05 2017 -0700
parser: handle foo.version explicitly
Otherwise, we run into a problem were version is treated as a
keyword, which is not what we want.
src/tmpl-expr-parser.y | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tmpl-expr-parser.y b/src/tmpl-expr-parser.y
index eb10f3a..4af2df3 100644
--- a/src/tmpl-expr-parser.y
+++ b/src/tmpl-expr-parser.y
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]