Mercurial > projects > dil
changeset 1:f3cd3bfde4ba
- Corrected some errors to make the file compile.
author | aziz |
---|---|
date | Tue, 29 May 2007 20:42:01 +0000 |
parents | 8ba2570de175 |
children | 81c6cc33f5c8 |
files | trunk/src/Lexer.d |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/Lexer.d Mon May 28 19:03:02 2007 +0000 +++ b/trunk/src/Lexer.d Tue May 29 20:42:01 2007 +0000 @@ -5,11 +5,11 @@ module Lexer; /// ASCII character properties table. -static const int ptable[256]; +static const int ptable[256] = []; enum CProperty { - Octal = 1 + Octal = 1, Digit = 1<<1, Hex = 1<<2, Alpha = 1<<3, @@ -36,7 +36,7 @@ if ('a' <= i && i <= 'z' || 'A' <= i && i <= 'Z') ptable[i] |= CProperty.Alpha; if (isalnum(i) || i == '_') - ptable[i] |= Property.Identifier; + ptable[i] |= CProperty.Identifier; } }