Skip to content

Fix token for None after fromimport in PythonLexer#2406

Merged
Anteru merged 1 commit intopygments:masterfrom
rdbende:fix-fromimport-none
Apr 9, 2023
Merged

Fix token for None after fromimport in PythonLexer#2406
Anteru merged 1 commit intopygments:masterfrom
rdbende:fix-fromimport-none

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
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.

2 participants