Mercurial > projects > dil
changeset 393:fce1e6133dac
Applied fix to hex float scanner.
Positive and negative exponents are scanned now.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 17 Sep 2007 21:57:11 +0200 |
parents | bb935c6f9b7a |
children | 6440da4adb07 |
files | trunk/src/dil/Lexer.d |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/Lexer.d Mon Sep 17 20:35:08 2007 +0200 +++ b/trunk/src/dil/Lexer.d Mon Sep 17 21:57:11 2007 +0200 @@ -1673,7 +1673,10 @@ } // Scan exponent assert(*p == 'p' || *p == 'P'); - if (!isdigit(*++p)) + ++p; + if (*p == '+' || *p == '-') + ++p; + if (!isdigit(*p)) { mid = MID.HexFloatExpMustStartWithDigit; goto Lerr;