From: Michal Dubiel Date: Sun, 23 Oct 2022 17:54:31 +0000 (+0200) Subject: eglot: Support signature labels without a function name X-Git-Tag: emacs-29.0.90~1616^2~178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d334f558a1151ff12b7022a88c75ceb4f1fbdf4;p=emacs.git eglot: Support signature labels without a function name * lisp/progmodes/eglot.el (eglot--sig-info): Support signature labels without a function name. (Bug#58777) Copyright-paperwork-exempt: yes --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index c59606a7cb4..97c674f7aa9 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2934,7 +2934,7 @@ for which LSP on-type-formatting should be requested." (let ((active-param (or activeParameter sig-help-active-param)) params-start params-end) ;; Ad-hoc attempt to parse label as () - (when (looking-at "\\([^(]+\\)(\\([^)]+\\))") + (when (looking-at "\\([^(]*\\)(\\([^)]+\\))") (setq params-start (match-beginning 2) params-end (match-end 2)) (add-face-text-property (match-beginning 1) (match-end 1) 'font-lock-function-name-face))