fisheva / Eva-Theme

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

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

Closed rababR1 closed 1 month ago

rababR1 commented 1 month 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 1 month 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