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

Add face property for symbol name #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions irony-eldoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ The symbol is specified by PROP, which is an object taken from
;; void function(...): "function(...)"
;; T function(...): "function(...) => T"
(let* ((name (propertize (irony-completion-typed-text prop)
'face 'eldoc-highlight-function-argument))
'face
(if (string= "" (irony-completion-annotation prop))
'font-lock-variable-name-face
'font-lock-function-name-face)))
(result-type (irony-completion-type prop))
(post-completion-data
(cons (irony-completion-post-comp-str prop)
Expand Down Expand Up @@ -301,7 +304,8 @@ ARG-INDEX and ARG-COUNT specify the index of function argument to
be highlighted, and PROP is an object from
`irony-completion--candidates'."
;; Show documentation inside a function call
(let* ((name (irony-completion-typed-text prop))
(let* ((name (propertize (irony-completion-typed-text prop)
'face 'font-lock-function-name-face))
;; FIXME The result type is "void" for constructors
(result-type (irony-completion-type prop))
(has-result-type (not (string= "" result-type)))
Expand Down