token rename

This commit is contained in:
Hackerpilot 2013-02-27 21:01:46 +00:00
parent 9b0d3d78d1
commit 16ac572ad5
1 changed files with 14 additions and 14 deletions

View File

@ -818,7 +818,7 @@ private:
lexComment!false();
return;
case '=':
current.type = TokenType.divEquals;
current.type = TokenType.divEqual;
current.value = "/=";
src.popFront();
return;
@ -2170,7 +2170,7 @@ private:
*/
pure nothrow bool isOperator(const TokenType t)
{
return t >= TokenType.assign && t <= TokenType.xorEquals;
return t >= TokenType.assign && t <= TokenType.xorEqual;
}
/**
@ -2342,7 +2342,7 @@ enum TokenType: ushort
comma, /// ,
decrement, /// --
div, /// /
divEquals, /// /=
divEqual, /// /=
dollar, /// $
dot, /// .
equals, /// ==
@ -2403,6 +2403,7 @@ enum TokenType: ushort
char_, /// $(D_KEYWORD char)
creal_, /// $(D_KEYWORD creal)
dchar_, /// $(D_KEYWORD dchar)
delegate_, /// $(D_KEYWORD delegate)
double_, /// $(D_KEYWORD double)
float_, /// $(D_KEYWORD float)
function_, /// $(D_KEYWORD function)
@ -2454,7 +2455,6 @@ enum TokenType: ushort
continue_, /// $(D_KEYWORD continue)
debug_, /// $(D_KEYWORD debug)
default_, /// $(D_KEYWORD default)
delegate_, /// $(D_KEYWORD delegate)
delete_, /// $(D_KEYWORD delete)
do_, /// $(D_KEYWORD do)
else_, /// $(D_KEYWORD else)
@ -2619,6 +2619,7 @@ immutable(string[TokenType.max + 1]) tokenValues = [
"char",
"creal",
"dchar",
"delegate",
"double",
"float",
"function",
@ -2668,7 +2669,6 @@ immutable(string[TokenType.max + 1]) tokenValues = [
"continue",
"debug",
"default",
"delegate",
"delete",
"do",
"else",