Check for mis-quoted #' in doc strings during byte-compile
* lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-style-warn): Check for mis-quoted #' in doc strings, too.
This commit is contained in:
parent
0a6e2b3bfc
commit
0596c69186
1 changed files with 1 additions and 1 deletions
|
@ -1760,7 +1760,7 @@ It is too wide if it has any lines longer than the largest of
|
|||
kind name col))
|
||||
;; There's a "naked" ' character before a symbol/list, so it
|
||||
;; should probably be quoted with \=.
|
||||
(when (string-match-p "\\( \"\\|[ \t]\\|^\\)'[a-z(]" docs)
|
||||
(when (string-match-p "\\( [\"#]\\|[ \t]\\|^\\)'[a-z(]" docs)
|
||||
(byte-compile-warn-x
|
||||
name "%s%sdocstring has wrong usage of unescaped single quotes (use \\= or different quoting)"
|
||||
kind name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue