Skip to content

Commit

Permalink
rm some todo
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Dec 16, 2023
1 parent 4b1207e commit 7105623
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tokenize.c
Original file line number Diff line number Diff line change
@@ -295,7 +295,6 @@ static char *read_string(struct State *st, char quote, int *len)
case '\n':
// \ at end of line, string continues on next line
if (quote == '\'') {
// TODO: tests
st->location.lineno--; // to get error at the correct line number
goto missing_end_quote;
}
@@ -321,7 +320,6 @@ static char *read_string(struct State *st, char quote, int *len)
return result.ptr;

missing_end_quote:
// TODO: tests
if (quote == '"')
fail_with_error(st->location, "missing \" to end the string");
else

0 comments on commit 7105623

Please sign in to comment.