Fix lexing a., b., etc

This commit is contained in:
Rangi
2021-03-30 11:41:44 -04:00
parent e023a84d04
commit 2507413162

View File

@@ -2078,7 +2078,7 @@ static int yylex_NORMAL(void)
case 'A': case 'A':
case 'a': case 'a':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_A; return T_TOKEN_A;
@@ -2087,7 +2087,7 @@ static int yylex_NORMAL(void)
case 'F': case 'F':
case 'f': case 'f':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_F; return T_TOKEN_F;
@@ -2096,7 +2096,7 @@ static int yylex_NORMAL(void)
case 'B': case 'B':
case 'b': case 'b':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_B; return T_TOKEN_B;
@@ -2105,7 +2105,7 @@ static int yylex_NORMAL(void)
case 'C': case 'C':
case 'c': case 'c':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_C; return T_TOKEN_C;
@@ -2114,7 +2114,7 @@ static int yylex_NORMAL(void)
case 'D': case 'D':
case 'd': case 'd':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_D; return T_TOKEN_D;
@@ -2123,7 +2123,7 @@ static int yylex_NORMAL(void)
case 'E': case 'E':
case 'e': case 'e':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_E; return T_TOKEN_E;
@@ -2132,7 +2132,7 @@ static int yylex_NORMAL(void)
case 'H': case 'H':
case 'h': case 'h':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_H; return T_TOKEN_H;
@@ -2141,7 +2141,7 @@ static int yylex_NORMAL(void)
case 'L': case 'L':
case 'l': case 'l':
if (peek(1) == '.') { if (peek(0) == '.') {
shiftChars(1); shiftChars(1);
lexerState->nextToken = T_PERIOD; lexerState->nextToken = T_PERIOD;
return T_TOKEN_L; return T_TOKEN_L;