mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Remove unnecessary 'invalid_primary' rule in the parser (GH-27186)
This commit is contained in:
parent
000e70ad52
commit
a283ef116b
4 changed files with 239 additions and 309 deletions
|
|
@ -209,7 +209,7 @@ def testSyntaxErrorOffset(self):
|
|||
check(b'Python = "\xcf\xb3\xf2\xee\xed" +', 1, 18)
|
||||
check('x = "a', 1, 5)
|
||||
check('lambda x: x = 2', 1, 1)
|
||||
check('f{a + b + c}', 1, 2)
|
||||
check('f{a + b + c}', 1, 1)
|
||||
check('[file for str(file) in []\n])', 2, 2)
|
||||
check('a = « hello » « world »', 1, 5)
|
||||
check('[\nfile\nfor str(file)\nin\n[]\n]', 3, 5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue