Accept more wide function signatures in docstrings

* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-wide-docstring-ignore-function-signature.el"): New test.
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Make regexp more allowing to silence warning.
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-function-signature.el:
New file.
This commit is contained in:
Stefan Kangas 2022-09-16 22:24:20 +02:00
parent aaf39c3878
commit 6938a2ddd2
3 changed files with 9 additions and 1 deletions

View file

@ -1705,7 +1705,7 @@ URLs."
(+ " " (or
;; Arguments.
(+ (or (syntax symbol)
(any word "-/:[]&=().?^\\#'")))
(any word "-/:[]&=()<>.,?^\\#*'\"")))
;; Argument that is a list.
(seq "(" (* (not ")")) ")")))
")")))