Skip to content

Commit

Permalink
Solve evil C standard stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed Mar 26, 2023
1 parent 83b2adf commit 00f8bda
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2442,6 +2442,9 @@ tok_get_fstring_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct
{
const char *p_start = NULL;
const char *p_end = NULL;
int end_quote_size = 0;
int unicode_escape = 0;

tok->start = tok->cur;
tok->first_lineno = tok->lineno;
tok->starting_col_offset = tok->col_offset;
Expand Down Expand Up @@ -2482,9 +2485,8 @@ tok_get_fstring_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct
tok->tok_mode_stack_index--;
return MAKE_TOKEN(FSTRING_END);

f_string_middle:
int end_quote_size = 0;
int unicode_escape = 0;
f_string_middle:

while (end_quote_size != current_tok->f_string_quote_size) {
int c = tok_nextc(tok);
if (c == EOF || (current_tok->f_string_quote_size == 1 && c == '\n')) {
Expand Down

0 comments on commit 00f8bda

Please sign in to comment.