Skip to content

Set comparator start location to beginning of comparison#4261

Merged
DimitrisJim merged 1 commit intoRustPython:mainfrom
astral-sh:charlie/comparator
Nov 7, 2022
Merged

Set comparator start location to beginning of comparison#4261
DimitrisJim merged 1 commit intoRustPython:mainfrom
astral-sh:charlie/comparator

Conversation

@charliermarsh
Copy link
Copy Markdown
Collaborator

Right now, 1 == 2 has a start location at the first =. This PR changes the parser such that start location is equivalent to the start of the left item (i.e., the 1).

@charliermarsh
Copy link
Copy Markdown
Collaborator Author

\cc @harupy

@DimitrisJim DimitrisJim merged commit bbe7c1f into RustPython:main Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants