Mercurial > projects > dil
diff trunk/src/Keywords.d @ 312:fa0b6f32c1ae
- Added Special to enum TOK.
- Added special tokens to keyword list.
- Added case T.Special for parsing SpecialTokenExpression.
author | aziz |
---|---|
date | Wed, 15 Aug 2007 19:19:00 +0000 |
parents | a416e09c08ea |
children |
line wrap: on
line diff
--- a/trunk/src/Keywords.d Wed Aug 15 17:37:03 2007 +0000 +++ b/trunk/src/Keywords.d Wed Aug 15 19:19:00 2007 +0000 @@ -105,5 +105,13 @@ {TOK.Volatile, "volatile"}, {TOK.Wchar, "wchar"}, {TOK.While, "while"}, - {TOK.With, "with"} + {TOK.With, "with"}, + // Special tokens: + {TOK.Special, "__FILE__"}, + {TOK.Special, "__LINE__"}, + {TOK.Special, "__DATE__"}, + {TOK.Special, "__TIME__"}, + {TOK.Special, "__TIMESTAMP__"}, + {TOK.Special, "__VENDOR__"}, + {TOK.Special, "__VERSION__"}, ];