mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] gh-137078: Fix keyword typo recognition when executed over files (GH-137079) (#137826)
This commit is contained in:
parent
4cb99bf9e3
commit
7b56d08219
6 changed files with 56 additions and 7 deletions
|
|
@ -94,10 +94,12 @@ func_type[mod_ty]: '(' a=[type_expressions] ')' '->' b=expression NEWLINE* ENDMA
|
|||
# GENERAL STATEMENTS
|
||||
# ==================
|
||||
|
||||
statements[asdl_stmt_seq*]: a=statement+ { _PyPegen_register_stmts(p, (asdl_stmt_seq*)_PyPegen_seq_flatten(p, a)) }
|
||||
statements[asdl_stmt_seq*]: a=statement+ { (asdl_stmt_seq*)_PyPegen_seq_flatten(p, a) }
|
||||
|
||||
statement[asdl_stmt_seq*]:
|
||||
| a=compound_stmt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) }
|
||||
| a=compound_stmt { _PyPegen_register_stmts(p ,
|
||||
(asdl_stmt_seq*)_PyPegen_singleton_seq(p, a)
|
||||
) }
|
||||
| a[asdl_stmt_seq*]=simple_stmts { a }
|
||||
|
||||
single_compound_stmt[asdl_stmt_seq*]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue