Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python lexer parsing floats incorrectly #1768

Merged
merged 3 commits into from
Apr 10, 2021

Conversation

Liam-Stevens
Copy link
Contributor

This PR fixes the issue discussed in issue #1740. We've also added some test cases to specifically test the python lexer against floats and integers. Let us know if there's any changes that need to be made.

The issue was that numbers were parsed after operators. This just required rearranging the order in which the tokens are processed.

@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Apr 10, 2021
@Anteru Anteru merged commit 472929d into pygments:master Apr 10, 2021
@Anteru
Copy link
Collaborator

Anteru commented Apr 10, 2021

Merged, thanks!

@Anteru
Copy link
Collaborator

Anteru commented Apr 10, 2021

Duplicate of ...?

@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label May 2, 2021
@Anteru Anteru linked an issue May 2, 2021 that may be closed by this pull request
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.

Python lexer does not consider .5 as float
3 participants