Made note of error to be fixed

This commit is contained in:
Kyler Olsen 2025-11-27 13:23:52 -07:00
parent 3a61e250a9
commit 6f202602ec
1 changed files with 3 additions and 0 deletions

View File

@ -685,6 +685,9 @@ static LexerResult convert_to_token_string(LexerInfo *lexer_info, LexerTokenResu
token_string.tokens[i].type = TOKEN_STRING;
token_string.tokens[i].string_literal = sls_str_cpy(current->result.string_literal);
} else if (current->result.type == TOKEN_TOKEN_STRING) {
// TODO: This is only a half deep copy
// Any token strings inside the token string are not copied correctly
// A token string deep copy function is likely in order
token_string.tokens[i].type = TOKEN_TOKEN_STRING;
token_string.tokens[i].token_string = (TokenString){
.length = current->result.token_string.length,