mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-107015: Remove async_hacks from the tokenizer (#107018)
This commit is contained in:
parent
b0202a4e5d
commit
da8f87b7ea
20 changed files with 404 additions and 499 deletions
|
@ -116,12 +116,6 @@ struct tok_state {
|
|||
|
||||
int type_comments; /* Whether to look for type comments */
|
||||
|
||||
/* async/await related fields (still needed depending on feature_version) */
|
||||
int async_hacks; /* =1 if async/await aren't always keywords */
|
||||
int async_def; /* =1 if tokens are inside an 'async def' body. */
|
||||
int async_def_indent; /* Indentation level of the outermost 'async def'. */
|
||||
int async_def_nl; /* =1 if the outermost 'async def' had at least one
|
||||
NEWLINE token after it. */
|
||||
/* How to proceed when asked for a new token in interactive mode */
|
||||
enum interactive_underflow_t interactive_underflow;
|
||||
int report_warnings;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue