summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eo_parser.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-07 14:57:46 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-07 14:58:03 +0100
commite126911ba0d34542fc3378971ced63f40851e198 (patch)
tree5d1ceadcea3fe3ef353a46cb78346bee052c9658 /src/lib/eolian/eo_parser.c
parent5c5f4580d2ed5208b4b8342aaa8d33e9d6953baa (diff)
eolian: allow the new property syntax
Diffstat (limited to '')
-rw-r--r--src/lib/eolian/eo_parser.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 8c21a3fdf8..9ed3deb99d 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -1630,7 +1630,15 @@ parse_methods(Eo_Lexer *ls)
1630 line = ls->line_number, col = ls->column; 1630 line = ls->line_number, col = ls->column;
1631 check_next(ls, '{'); 1631 check_next(ls, '{');
1632 while (ls->t.token != '}') 1632 while (ls->t.token != '}')
1633 parse_method(ls); 1633 {
1634 if (ls->t.kw == KW_at_property)
1635 {
1636 eo_lexer_get(ls);
1637 parse_property(ls);
1638 continue;
1639 }
1640 parse_method(ls);
1641 }
1634 check_match(ls, '}', '{', line, col); 1642 check_match(ls, '}', '{', line, col);
1635} 1643}
1636 1644