summaryrefslogtreecommitdiffstats
path: root/src/vhd2vl.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhd2vl.l')
-rw-r--r--src/vhd2vl.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhd2vl.l b/src/vhd2vl.l
index ab3c0d0..9719206 100644
--- a/src/vhd2vl.l
+++ b/src/vhd2vl.l
@@ -163,8 +163,8 @@ int scan_int(char *s);
return NATURAL;
}
-[0-9]+e[0-9]+ |
-[0-9]+\.[0-9]+e[0-9]+ {
+[0-9]+e[-+]?[0-9]+ |
+[0-9]+\.[0-9]+e[-+]?[0-9]+ {
yylval.txt=malloc(strlen(yytext)+1);
strcpy(yylval.txt, yytext);
return SCIENTIFIC;
OpenPOWER on IntegriCloud