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