summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.l b/parser.l
index 7e07f79f..52aab27c 100644
--- a/parser.l
+++ b/parser.l
@@ -153,7 +153,7 @@ SGN [+\-]
EXP [eE][+\-]?[0-9]+
DIG [0-9]
NUM {SGN}?{DIG}+
-FLO {SGN}?{DIG}*[.]({DIG}+{EXP}?|{EXP})
+FLO {SGN}?({DIG}*[.]{DIG}+{EXP}?|{DIG}+[.]?{EXP})
FLODOT {SGN}?{DIG}+[.]
BSCHR [a-zA-Z0-9!$%&*+\-<=>?\\^_~]
BSYM {BSCHR}({BSCHR}|#)*