From eef4e11768222914ffb93ccc1ab698e1cfbd7922 Mon Sep 17 00:00:00 2001 From: egaburov Date: Mon, 16 Sep 2013 17:25:13 +0200 Subject: [PATCH] now it is also case nonsensitive --- lex.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lex.ll b/lex.ll index ca318dbb..f1dcaa6f 100644 --- a/lex.ll +++ b/lex.ll @@ -446,7 +446,7 @@ L?\"(\\.|[^\\"])*\" { lStringConst(&yylval, &yylloc); return TOKEN_STRING_LITERA RT; { int i = 0; - while (yytext[i] != 'd') i++; + while (yytext[i] != 'd' && yytext[i] != 'D') i++; yytext[i] = 'E'; } yylval.doubleVal = atof(yytext);