Made note of error to be fixed
This commit is contained in:
parent
3a61e250a9
commit
6f202602ec
|
|
@ -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].type = TOKEN_STRING;
|
||||||
token_string.tokens[i].string_literal = sls_str_cpy(current->result.string_literal);
|
token_string.tokens[i].string_literal = sls_str_cpy(current->result.string_literal);
|
||||||
} else if (current->result.type == TOKEN_TOKEN_STRING) {
|
} 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].type = TOKEN_TOKEN_STRING;
|
||||||
token_string.tokens[i].token_string = (TokenString){
|
token_string.tokens[i].token_string = (TokenString){
|
||||||
.length = current->result.token_string.length,
|
.length = current->result.token_string.length,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue