make expression parser handle scientific notation
[fio.git] / exp / expression-parser.l
index 11eb833063993e531b08cc069fd08bdaf532808d..7d5e787dd9748bceebaa747ffcbe4edc37f9c2fc 100644 (file)
@@ -109,7 +109,7 @@ static int __attribute__((unused)) input(void);
                }
 [ \t] ; /* ignore whitespace */
 [#:,].* ; /* ignore comments, and everything after colons and commas */
-[0-9]*[.][0-9]+ {
+[0-9]*[.][0-9]+|[0-9]*[.]?[0-9]+[eE][-+]*[0-9]+ {
                        int rc;
                        double dval;