fisheva / Eva-Theme

A comfortable and semantic theme.
https://marketplace.visualstudio.com/items?itemName=fisheva.eva-theme
MIT License
451 stars 38 forks source link

Why is `True` in Python not colored properly? #129

Open rababR1 opened 6 days ago

rababR1 commented 6 days ago

Screenshot

image Should be this when semantic highlighting is enabled, I had to manually edit it in the settings.json file: image

Code Snippet

def validateInteger(prompt):
    while True:
        try:
            return int(input(prompt))
        except ValueError:
            print("That's not an integer!\n")
            continue

The language is Python

Notes

This is with semantic highlighting enabled.

fisheva commented 6 days ago

It displays correct in my computer, whether I enabled semantic highlighting.

WeCom20240926-111702@2x

It may some of your other plugin add the semantic syntax rule, recognised the True as variable.other.constant, I can't style this rule as boolean. And Eve Theme doesn't support semantic highlighting currently.


Quite strange, it seams semantic hightlighting did't work in .py file in my computer. But it worked in .js file.

WeCom20240926-112526@2x