eolian: allow namespaces when referring to constants in exprs

This commit is contained in:
Daniel Kolesa 2014-08-12 13:11:13 +01:00
parent be68f9e1fa
commit 75ee3b031d
1 changed files with 5 additions and 1 deletions

View File

@ -413,9 +413,13 @@ parse_expr_simple(Eo_Lexer *ls)
}
default:
{
Eina_Strbuf *buf = push_strbuf(ls);
expr = push_expr(ls);
expr->type = EOLIAN_EXPR_NAME;
expr->value.s = eina_stringshare_ref(ls->t.value.s);
parse_name(ls, buf);
expr->value.s = eina_stringshare_add(eina_strbuf_string_get
(buf));
pop_strbuf(ls);
eo_lexer_get(ls);
break;
}