Skip to content

Commit

Permalink
Merge pull request #2406 from rdbende/fix-fromimport-none
Browse files Browse the repository at this point in the history
Fix token for None after fromimport in PythonLexer
  • Loading branch information
Anteru committed Apr 9, 2023
2 parents acee60e + 62b1bbb commit 26f9f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def fstring_rules(ttype):
(r'\.', Name.Namespace),
# if None occurs here, it's "raise x from None", since None can
# never be a module name
(r'None\b', Name.Builtin.Pseudo, '#pop'),
(r'None\b', Keyword.Constant, '#pop'),
(uni_name, Name.Namespace),
default('#pop'),
],
Expand Down

0 comments on commit 26f9f6c

Please sign in to comment.