Fixed lexing error in floating point literals
This commit is contained in:
parent
0561a686d9
commit
bae501e5b1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue