You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: