eolian: add comment parsing for typedefs

This commit is contained in:
Daniel Kolesa 2014-07-23 10:57:23 +01:00
parent 17e2c4bc06
commit a8c0504ce2
1 changed files with 5 additions and 0 deletions

View File

@ -521,6 +521,11 @@ parse_typedef(Eo_Lexer *ls)
def->base_type = parse_type_struct_nonvoid(ls, EINA_TRUE, EINA_TRUE);
pop_type(ls);
check_next(ls, ';');
if (ls->t.token == TOK_COMMENT)
{
def->comment = eina_stringshare_ref(ls->t.value);
eo_lexer_get(ls);
}
return def;
}