(Python) Wrong highlighting of default arguments #2713
Labels
bug
good first issue
Should be easier for first time contributors
help welcome
Could use help from community
language
Describe the issue
None
should be the same colour in the function signature and function body (since it's the same object being referred to), but instead it's plain in in the signature and colored in the body.Screenshots from this Stack Overflow post (dark and light mode):
Which language seems to have the issue?
python
/py
Are you using
highlight
orhighlightAuto
?I don't know what that means. I assume it's about how highlight.js is deployed, but I'm an end user, not a Stack Exchange dev.
Sample Code to Reproduce
Expected behavior
None
should be the same colour in the function signature and function body. GitHub gets it right (see snippet above). And FWIW, here are screenshots from Atom, PythonAnywhere, and gedit, which are all using different highlighting schemes to GitHub:Additional context
I originally posted this bug report on Stack Overflow and was directed here by Martijn Pieters.
The text was updated successfully, but these errors were encountered: