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

Function declarations get tagged with function-call-face #174

Closed
fermata101 opened this issue Oct 9, 2021 · 1 comment
Closed

Function declarations get tagged with function-call-face #174

fermata101 opened this issue Oct 9, 2021 · 1 comment

Comments

@fermata101
Copy link

fermata101 commented Oct 9, 2021

Function declarations should be getting tagged with the property swift-mode:function-name-face. Instead, they are incorrectly tagged with swift-mode:function-call-face (as can be observed by doing M-x describe-text-properties with cursor on the function name.)

By default, both faces inherit from Emacs' default font-lock-function-name-face. However, I prefer to highlight function declarations but not function calls.

I found that a simple fix was to swap the definitions of the two faces in swift-mode-font-lock.el, so that function-name-face comes before function-call-face. This fixed it for me.

@taku0 taku0 closed this as completed in e246264 Oct 17, 2021
@taku0
Copy link
Member

taku0 commented Oct 17, 2021

Fixed. Thank you for reporting.

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

2 participants