Fix empty strings not having string data
This commit is contained in:
parent
43fea86d92
commit
6512439ce3
@ -510,6 +510,7 @@ class Tokenizer
|
||||
{
|
||||
currentToken.type = TokenType.StringLiteral;
|
||||
currentToken.region.end = new(currentLocation);
|
||||
currentToken.data = new Token.StringData("");
|
||||
}
|
||||
}
|
||||
else if(!char.IsWhiteSpace(ch))
|
||||
@ -542,6 +543,7 @@ class Tokenizer
|
||||
{
|
||||
currentToken.type = TokenType.StringLiteral;
|
||||
currentToken.region.end = new(currentLocation);
|
||||
currentToken.data = new Token.StringData("");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user