Why does VS Code sometimes colorise python print() as a magic method?
I didn’t like VS Codes existing colour scheme for syntax highlighting in python, so I added rules using the textmate scopes. For functions, I used "entity.name.function.python"
. However, sometimes, when printing a string, print is colorised the correct colour (e.g. green). However, when printing a class, it colorised print()
different color. The textmate scope now says "support.function.builtin.python"
.