Fixed lexing error in floating point literals

This commit is contained in:
Hackerpilot 2014-01-13 22:17:40 +00:00
parent 0561a686d9
commit bae501e5b1
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ public struct DLexer(R)
case '.': case '.':
if (foundDot) if (foundDot)
break decimalLoop; break decimalLoop;
auto lookahead = range.lookahead(1); auto lookahead = range.lookahead(2);
if (lookahead.length == 1 && lookahead[0] == '.') if (lookahead.length == 1 && lookahead[0] == '.')
break decimalLoop; break decimalLoop;
else else