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 Python3Lexer .identifier regex #34

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

ffraaz
Copy link
Contributor

@ffraaz ffraaz commented Aug 22, 2023

This fixes two bugs of the Python lexer:
before

  1. In function calls, e.g., np.zeros(5, 5) in line 3, the dot was falsely highlighted.
  2. In decimal numbers, e.g., 1.5 in line 5, the digit after the decimal point was falsely highlighted in a different colour than the digit before the decimal point.

By modifying the regular expression for tokenType: .identifier, both of these bugs are fixed:
after

@twostraws
Copy link
Owner

Thank you!

@twostraws twostraws merged commit 1ec0ed9 into twostraws:main Sep 18, 2023
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.

2 participants