Remove unnecessary setting of currentToken
This commit is contained in:
parent
ef333f7d93
commit
f310882220
@ -358,14 +358,12 @@ class Tokenizer
|
|||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
{
|
{
|
||||||
currentToken = null;
|
|
||||||
state = State.Quote;
|
state = State.Quote;
|
||||||
currentToken = new(region: new(start: new(currentLocation), end: new(currentLocation)), type: TokenType.StringLiteral);
|
currentToken = new(region: new(start: new(currentLocation), end: new(currentLocation)), type: TokenType.StringLiteral);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '\'':
|
case '\'':
|
||||||
{
|
{
|
||||||
currentToken = null;
|
|
||||||
state = State.SingleQuote;
|
state = State.SingleQuote;
|
||||||
currentToken = new(region: new(start: new(currentLocation), end: new(currentLocation)), type: TokenType.StringLiteral);
|
currentToken = new(region: new(start: new(currentLocation), end: new(currentLocation)), type: TokenType.StringLiteral);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user