Skip to content

Commit f70f8af

Browse files
pablogsalmgmacias95
authored andcommitted
Solve evil C standard stuff
1 parent 0762910 commit f70f8af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Parser/tokenizer.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,9 @@ tok_get_fstring_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct
24272427
{
24282428
const char *p_start = NULL;
24292429
const char *p_end = NULL;
2430+
int end_quote_size = 0;
2431+
int unicode_escape = 0;
2432+
24302433
tok->start = tok->cur;
24312434
tok->first_lineno = tok->lineno;
24322435
tok->starting_col_offset = tok->col_offset;
@@ -2467,9 +2470,8 @@ tok_get_fstring_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct
24672470
tok->tok_mode_stack_index--;
24682471
return MAKE_TOKEN(FSTRING_END);
24692472

2470-
f_string_middle:
2471-
int end_quote_size = 0;
2472-
int unicode_escape = 0;
2473+
f_string_middle:
2474+
24732475
while (end_quote_size != current_tok->f_string_quote_size) {
24742476
int c = tok_nextc(tok);
24752477
if (c == EOF || (current_tok->f_string_quote_size == 1 && c == '\n')) {

0 commit comments

Comments
 (0)