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 token for None after fromimport in PythonLexer #2406

Merged
merged 1 commit into from Apr 9, 2023

Conversation

rdbende
Copy link
Contributor

@rdbende rdbende commented Apr 8, 2023

Pygments yields Token.Name.Builtin.Pseudo for None after a from keyword. Seems like this behavior remained from Python2Lexer, where it was indeed Name.Builtin.Pseudo, but the correct token in Python3Lexer would be Keyword.Constant.

@Anteru
Copy link
Collaborator

Anteru commented Apr 9, 2023

Good catch, thanks!

@Anteru Anteru added this to the 2.15.0 milestone Apr 9, 2023
@Anteru Anteru added the A-lexing area: changes to individual lexers label Apr 9, 2023
@Anteru Anteru merged commit 26f9f6c into pygments:master Apr 9, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants