Text color for Python constants #8584
-
Hi! My question may not be related to Positron but to Python in general. If so, feel free to close it and redirect me. I recently realised that the way Positron highlights Python constants includes this case: CONST = 1
ANOTHER_CONST = 2
D3_CONST = 3
NO_NUMBER = 4
If a "constant" contains a number, it is not considered a "true" constant. PEP8 about constants does not mention numbers, but neither does it explicitly say not to use numbers. In principle, I would have liked them all to be colored the same way because it looks odd in the editor. Is there any reason not to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I cannot reproduce this. In the default Positron color schemes (light and dark), there is no difference in color between variables and constants. When using a custom theme all constants are the same color, independent of them having numbers or not. Are there any extensions active that might alter the behavior? |
Beta Was this translation helpful? Give feedback.
I cannot reproduce this. In the default Positron color schemes (light and dark), there is no difference in color between variables and constants. When using a custom theme all constants are the same color, independent of them having numbers or not.
Are there any extensions active that might alter the behavior?