mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Fix lazy doc string fontify bug in elisp-byte-code-mode (bug#80292)
* lisp/progmodes/elisp-mode.el (elisp-byte-code-syntax-propertize): Reset point to just after the start of the previous match so that we don't skip past the end of the lazy string, which can happen if it's zero-length; that could lead to an infinite loop.
This commit is contained in:
parent
e08efecd96
commit
385bcc6117
|
|
@ -1783,7 +1783,9 @@ and `eval-expression-print-level'.
|
|||
(funcall
|
||||
(syntax-propertize-rules
|
||||
(emacs-lisp-byte-code-comment-re
|
||||
(1 (prog1 "< b" (elisp--byte-code-comment end (point))))))
|
||||
(1 (prog1 "< b"
|
||||
(goto-char (match-end 1))
|
||||
(elisp--byte-code-comment end (point))))))
|
||||
start end))
|
||||
|
||||
;;;###autoload
|
||||
|
|
|
|||
Loading…
Reference in a new issue