diff options
| author | Harald Jörg | 2023-06-15 17:08:07 +0200 |
|---|---|---|
| committer | Harald Jörg | 2023-06-15 17:15:36 +0200 |
| commit | 1acce3b5c7fdf0b2a7301db25dfc2a616df36744 (patch) | |
| tree | 3c304799eaa931bd7ac8f3e126273c58c540f7f8 | |
| parent | ad3ec429a12fb8caa460de5911145d1d3c46d626 (diff) | |
| download | emacs-1acce3b5c7fdf0b2a7301db25dfc2a616df36744.tar.gz emacs-1acce3b5c7fdf0b2a7301db25dfc2a616df36744.zip | |
; cperl-mode.el: Fix font-lock after yanking into POD
When extending the region to fontify for jit-lock-mode, make
sure we start fontifying at the beginning of a POD section
(Bug#64056).
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index ed021a7ebc9..6548ba3bd36 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -3394,7 +3394,9 @@ position of the end of the unsafe construct." | |||
| 3394 | (goto-char (nth 8 state)) ; beginning of this here-doc | 3394 | (goto-char (nth 8 state)) ; beginning of this here-doc |
| 3395 | (cperl-backward-to-noncomment ; skip back over more | 3395 | (cperl-backward-to-noncomment ; skip back over more |
| 3396 | (point-min)) ; here-documents (if any) | 3396 | (point-min)) ; here-documents (if any) |
| 3397 | (beginning-of-line)))) ; skip back over here-doc starters | 3397 | (beginning-of-line)) ; skip back over here-doc starters |
| 3398 | ((nth 4 state) ; in a comment (or POD) | ||
| 3399 | (goto-char (nth 8 state))))) ; ...so go to its beginning | ||
| 3398 | (while (and pos (progn | 3400 | (while (and pos (progn |
| 3399 | (beginning-of-line) | 3401 | (beginning-of-line) |
| 3400 | (get-text-property (setq pos (point)) 'syntax-type))) | 3402 | (get-text-property (setq pos (point)) 'syntax-type))) |