summaryrefslogtreecommitdiff
path: root/frontends/ilang
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-10-23 18:38:31 +0200
committerClifford Wolf <clifford@clifford.at>2013-10-23 18:38:31 +0200
commit77726fb5fe2bdf76ac8146e05bb776af99eb0f51 (patch)
treeba052dfce78c08d5e2f20b575006cec593b1f860 /frontends/ilang
parentd61699843fc3ecab9c484d911f43877e9a7a9d3d (diff)
Fixed parsing of value-less attributes in ilang
Diffstat (limited to 'frontends/ilang')
-rw-r--r--frontends/ilang/lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ilang/lexer.l b/frontends/ilang/lexer.l
index e331c267..2a20f02a 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); }