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

Bug: tan() function gets colorized #39

Open
Riksu9000 opened this issue Dec 29, 2022 · 1 comment
Open

Bug: tan() function gets colorized #39

Riksu9000 opened this issue Dec 29, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Riksu9000
Copy link

A function named tan() gets colorized. This isn't referring to a color, so I expect it to not get colorized. Maybe this can be fixed by checking for a trailing parenthesis.

Screenshots
image

Neovim Version:
0.8.1

Colorizer Version:
760e27d

@Riksu9000 Riksu9000 added the bug Something isn't working label Dec 29, 2022
@Riksu9000 Riksu9000 changed the title Bug: tan() gets colorized Bug: tan() function gets colorized Dec 29, 2022
@Akianonymus
Copy link
Collaborator

Given the dumb nature of the color name algorithm, that's intended. Obviously i could add a check for a trailing parenthesis. But there are too many conditions that could happen, like what if [ or { or something, trailing or leading.

So i have no intention of adding a hacky fix like that.

You should disable names for that file type specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants