aboutsummaryrefslogtreecommitdiff
path: root/src/build.l
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/build.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.l b/src/build.l
index 30c79a6..7a77bfc 100644
--- a/src/build.l
+++ b/src/build.l
@@ -140,12 +140,12 @@ int iStrDepth = 0;
140 return LTR_UNDEF; 140 return LTR_UNDEF;
141} 141}
142 142
143-?([1-9][0-9]*)|(0) { 143([1-9][0-9]*)|(0) {
144 yylval->iVal = strtol( yytext, NULL, 10 ); 144 yylval->iVal = strtol( yytext, NULL, 10 );
145 return LTR_INT; 145 return LTR_INT;
146} 146}
147 147
148(0\.0+)|(-?(([1-9][0-9]*)|(0))\.[0-9]*) { 148(0\.0+)|((([1-9][0-9]*)|(0))\.[0-9]*) {
149 yylval->fVal = strtof( yytext, NULL ); 149 yylval->fVal = strtof( yytext, NULL );
150 return LTR_FLOAT; 150 return LTR_FLOAT;
151} 151}