mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-11 09:20:51 +00:00
Eglot: another tweak to eglot--sig-info
Going to the start of the first param and skipping non-word syntax backward would seem to be the right thing to do, for traditional C-style languages and also languages like Ocaml where function signatures don't start the param list with '('. See also https://github.com/joaotavora/eglot/discussions/1251. * lisp/progmodes/eglot.el (eglot--sig-info): Rework again.
This commit is contained in:
parent
59a350cb91
commit
c2e4c68333
@ -3212,7 +3212,7 @@ for which LSP on-type-formatting should be requested."
|
||||
parameter
|
||||
(when (zerop i)
|
||||
(goto-char (elt parlabel 0))
|
||||
(search-backward "(" nil t)
|
||||
(skip-syntax-backward "^w")
|
||||
(add-face-text-property (point-min) (point)
|
||||
'font-lock-function-name-face))
|
||||
;; ...perhaps highlight it in the formals list
|
||||
|
Loading…
Reference in New Issue
Block a user