Remove unnecessary 'invalid_primary' rule in the parser (GH-27186)

This commit is contained in:
Pablo Galindo Salgado 2021-07-16 13:20:09 +01:00 committed by GitHub
parent 000e70ad52
commit a283ef116b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 239 additions and 309 deletions

View file

@ -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)