Skip to content

Commit a78c082

Browse files
committed
Minor fixes to lexer and Makefile
1 parent 4e32db6 commit a78c082

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile.pre.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,6 +2638,7 @@ TESTSUBDIRS= idlelib/idle_test \
26382638
test/test_peg_generator \
26392639
test/test_pydoc \
26402640
test/test_pyrepl \
2641+
test/test_string \
26412642
test/test_sqlite3 \
26422643
test/test_tkinter \
26432644
test/test_tomllib \

Parser/lexer/lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ tok_get_normal_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct t
10161016
Py_UNREACHABLE();
10171017
}
10181018

1019-
the_current_tok->string_kind = TSTRING;
1019+
the_current_tok->string_kind = string_kind;
10201020
the_current_tok->curly_bracket_depth = 0;
10211021
the_current_tok->curly_bracket_expr_start_depth = -1;
10221022
return string_kind == TSTRING ? MAKE_TOKEN(TSTRING_START) : MAKE_TOKEN(FSTRING_START);

0 commit comments

Comments
 (0)