Whitespace doesn't break stuff

This commit is contained in:
Kyler Olsen 2025-11-20 16:43:24 -07:00
parent f2033e30e9
commit 68665a82ae
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ static LexerResult parse_identifiers_and_booleans(LexerInfo *lexer_info, char c,
} }
char *name_value = (char *)calloc(length+1, sizeof(char)); char *name_value = (char *)calloc(length+1, sizeof(char));
for (size_t i = 0; i < length; i++) for (size_t i = 0; i < length; i++)
name_value[i] = lexer_info->source_code.str[i + (2 * literal)]; name_value[i] = lexer_info->source_code.str[start + i + (2 * literal)];
SlsStr name = sls_str_malloc(name_value, length); SlsStr name = sls_str_malloc(name_value, length);
free(name_value); free(name_value);
if (sls_str_cmp(name, SLS_STR("false")) == 0) if (sls_str_cmp(name, SLS_STR("false")) == 0)