From 77726fb5fe2bdf76ac8146e05bb776af99eb0f51 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 23 Oct 2013 18:38:31 +0200 Subject: [PATCH] Fixed parsing of value-less attributes in ilang --- frontends/ilang/lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/ilang/lexer.l b/frontends/ilang/lexer.l index e331c267e..2a20f02a8 100644 --- a/frontends/ilang/lexer.l +++ b/frontends/ilang/lexer.l @@ -70,7 +70,7 @@ "$"[^ \t\r\n]+ { rtlil_frontend_ilang_yylval.string = strdup(yytext); return TOK_ID; } "."[0-9]+ { rtlil_frontend_ilang_yylval.string = strdup(yytext); return TOK_ID; } -[0-9]+'[01xzm-]+ { rtlil_frontend_ilang_yylval.string = strdup(yytext); return TOK_VALUE; } +[0-9]+'[01xzm-]* { rtlil_frontend_ilang_yylval.string = strdup(yytext); return TOK_VALUE; } [0-9]+ { rtlil_frontend_ilang_yylval.integer = atoi(yytext); return TOK_INT; } \" { BEGIN(STRING); } -- 2.30.2