Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is True in Python not colored properly? #129

Closed
rababR1 opened this issue Sep 25, 2024 · 1 comment
Closed

Why is True in Python not colored properly? #129

rababR1 opened this issue Sep 25, 2024 · 1 comment
Labels

Comments

@rababR1
Copy link

rababR1 commented Sep 25, 2024

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
Copy link
Owner

fisheva commented Sep 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants