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 related to color scheme (methods with underscores are painted incorrectly) #72

Open
pyloolex opened this issue Sep 9, 2022 · 0 comments

Comments

@pyloolex
Copy link

pyloolex commented Sep 9, 2022

Hi folks,

I've found a bug related to colours in Emacs when "kotlin-mode" is enabled.

Class methods containing underscores are highlighted with different colours. For some reason, the first word of the method name is treated as "font-lock-type-face" whereas the rest is "default".

image

Look at "roll_button" and "activity_main" on the screenshot:

image

This is the default config file ".emacs", fresh installation of Emacs 27.2. So this is not related to a specific user's configuration. It's wrong with the default config.

The same thing is in the UI version:

image

This is definitely not right. I'd expect the full method name to be categorized as a single colour.

For debugging purposes, you can use these settings (just to see the difference):

(set-face-attribute 'font-lock-type-face nil :foreground "#ff0000")
(set-face-attribute 'default nil :foreground "#0000ff")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant