summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer.l b/lexer.l
index 6b0294f..d34ed7b 100644
--- a/lexer.l
+++ b/lexer.l
@@ -50,7 +50,7 @@ WS [ \t]+
/* You need to define the following RE's */
CONST_INT [+-]?{digit}+
-CONST_FLOAT [+-]?([0-9]+|[0-9]*\.[0-9]+([eE][-+]?[0-9]+)?)
+CONST_FLOAT [+-]?(([0-9]+|[0-9]*\.[0-9]+)([eE][-+]?[0-9]+)?)
/* {digit}+\.{digit}+ */
CONST_STRING \"([^\"\n]|(\\.))*\"
COMMENT \/\*([^*]|\n|(\*+([^*/]|\n)))*\*+\/