eolian: allow the new property syntax

This commit is contained in:
Daniel Kolesa 2015-05-07 14:57:46 +01:00
parent 5c5f4580d2
commit e126911ba0
1 changed files with 9 additions and 1 deletions

View File

@ -1630,7 +1630,15 @@ parse_methods(Eo_Lexer *ls)
line = ls->line_number, col = ls->column;
check_next(ls, '{');
while (ls->t.token != '}')
parse_method(ls);
{
if (ls->t.kw == KW_at_property)
{
eo_lexer_get(ls);
parse_property(ls);
continue;
}
parse_method(ls);
}
check_match(ls, '}', '{', line, col);
}