Mercurial > projects > dil
diff trunk/src/main.d @ 392:bb935c6f9b7a
Applied fixes and improvements to the Lexer class.
In scanDelimitedStringLiteral:
- leading newlines are skipped now.
- passed c instead of closing_delim to isUniAlpha().
- the matching string delimiter must follow a newline.
- corrected if-statements and an assert().
Added inTokenString member:
- in scanTokenStringLiteral() this member is increment at the start
and decremented at the end.
- in scanSpecialTokenSequence() this member is checked and #line is not
evaluated if it is not zero.
Added missing break to case 'L' in scanNumber().
In scanReal():
- changed debug switch to a delegate inside an assert().
- removing underscores from buffer more efficiently.
Made some other trivial changes and fixes to other modules.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 17 Sep 2007 20:35:08 +0200 |
parents | 33b566df6af4 |
children | fcdf7ac5ad27 |
line wrap: on
line diff