Mercurial > projects > dang
comparison lexer/Lexer.d @ 91:1a24e61eb104 new_gen
Fixed the SourceLocation/SourceManager for files stretching by more then one CheckPoints
author | johnsen@johnsen-laptop |
---|---|
date | Mon, 05 May 2008 17:07:16 +0200 |
parents | a49bb982a7b0 |
children | 771ac63898e2 |
comparison
equal
deleted
inserted
replaced
90:4b6d8563e943 | 91:1a24e61eb104 |
---|---|
354 char current = source[position + offset]; | 354 char current = source[position + offset]; |
355 | 355 |
356 CharType c = charTable[current]; | 356 CharType c = charTable[current]; |
357 | 357 |
358 if(c == CharType.INVALID) | 358 if(c == CharType.INVALID) |
359 messages.report(InvalidSymbol, SLoc()).arg(current); | 359 messages.report(InvalidSymbol, Loc(), 1).arg(Integer.toString(cast(int)current)); |
360 | 360 |
361 return c; | 361 return c; |
362 | 362 |
363 } | 363 } |
364 | 364 |