Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Conversation

jakebailey
Copy link
Member

Fixes #1862.

Incorrect lines with things like /= get double-errors, as the subparser first reaches the end of the input, reports EOF, then the fstring parsing code surrounding it tries to recover from the rest and fails again. Not ideal, but if you're sticking assignment operators into fstrings, two errors isn't the end of the world.

@jakebailey jakebailey merged commit e31f770 into microsoft:master Jan 10, 2020
@jakebailey jakebailey deleted the fstring-equal-operators branch January 10, 2020 22:38
MikhailArkhipov pushed a commit that referenced this pull request Jun 15, 2020
* Handle operators containing equals in fstring parsing

* Remove some dead code

* Remove LINQ, simplify to property

* Just append NextChar in the bufferer function, don't pipe down

(cherry picked from commit e31f770)
MikhailArkhipov pushed a commit that referenced this pull request Jun 15, 2020
* Handle operators containing equals in fstring parsing

* Remove some dead code

* Remove LINQ, simplify to property

* Just append NextChar in the bufferer function, don't pipe down

(cherry picked from commit e31f770)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python(parser-16) error for use of if condition in fstring
2 participants