From bafd7054787de5983145c687f5d0474243598a63 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sun, 6 Jan 2008 18:57:16 -0800 Subject: [PATCH] Allow negative values for realtime net constants. The lexor didn't allow for negative values for realtime net constants. The minus sign was not accepted as a character in the identifier string. --- vvp/lexor.lex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vvp/lexor.lex b/vvp/lexor.lex index 8a6769f5e..95a437017 100644 --- a/vvp/lexor.lex +++ b/vvp/lexor.lex @@ -195,6 +195,11 @@ assert(yylval.text); return T_SYMBOL; } +"Cr<"[.$_a-zA-Z0-9/,\-]*">" { + yylval.text = strdup(yytext); + assert(yylval.text); + return T_SYMBOL; } + /* Accept the common assembler style comments, treat them as white space. Of course, also skip white space. The semi-colon is