diff options
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 5ba09789097..3b24a23b893 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -899,10 +899,11 @@ Semicolons start comments. | |||
| 899 | ;;; Emacs Lisp Byte-Code mode | 899 | ;;; Emacs Lisp Byte-Code mode |
| 900 | 900 | ||
| 901 | (eval-and-compile | 901 | (eval-and-compile |
| 902 | (defconst emacs-list-byte-code-comment-re | 902 | (defconst emacs-lisp-byte-code-comment-re |
| 903 | (concat "\\(#\\)@\\([0-9]+\\) " | 903 | (concat "\\(#\\)@\\([0-9]+\\) " |
| 904 | ;; Make sure it's a docstring and not a lazy-loaded byte-code. | 904 | ;; Make sure it's a docstring and not a lazy-loaded byte-code. |
| 905 | "\\(?:[^(]\\|([^\"]\\)"))) | 905 | "\\(?:[^(]\\|([^\"]\\)") |
| 906 | "Regular expression matching a dynamic doc string comment.")) | ||
| 906 | 907 | ||
| 907 | (defun elisp--byte-code-comment (end &optional _point) | 908 | (defun elisp--byte-code-comment (end &optional _point) |
| 908 | "Try to syntactically mark the #@NNN ....^_ docstrings in byte-code files." | 909 | "Try to syntactically mark the #@NNN ....^_ docstrings in byte-code files." |
| @@ -911,7 +912,7 @@ Semicolons start comments. | |||
| 911 | (eq (char-after (nth 8 ppss)) ?#)) | 912 | (eq (char-after (nth 8 ppss)) ?#)) |
| 912 | (let* ((n (save-excursion | 913 | (let* ((n (save-excursion |
| 913 | (goto-char (nth 8 ppss)) | 914 | (goto-char (nth 8 ppss)) |
| 914 | (when (looking-at emacs-list-byte-code-comment-re) | 915 | (when (looking-at emacs-lisp-byte-code-comment-re) |
| 915 | (string-to-number (match-string 2))))) | 916 | (string-to-number (match-string 2))))) |
| 916 | ;; `maxdiff' tries to make sure the loop below terminates. | 917 | ;; `maxdiff' tries to make sure the loop below terminates. |
| 917 | (maxdiff n)) | 918 | (maxdiff n)) |
| @@ -937,7 +938,7 @@ Semicolons start comments. | |||
| 937 | (elisp--byte-code-comment end (point)) | 938 | (elisp--byte-code-comment end (point)) |
| 938 | (funcall | 939 | (funcall |
| 939 | (syntax-propertize-rules | 940 | (syntax-propertize-rules |
| 940 | (emacs-list-byte-code-comment-re | 941 | (emacs-lisp-byte-code-comment-re |
| 941 | (1 (prog1 "< b" (elisp--byte-code-comment end (point)))))) | 942 | (1 (prog1 "< b" (elisp--byte-code-comment end (point)))))) |
| 942 | start end)) | 943 | start end)) |
| 943 | 944 | ||