aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/perl-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/perl-mode.el')
-rw-r--r--lisp/progmodes/perl-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index ad4633e20e..63848b188b 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -296,7 +296,7 @@ The expansion is entirely correct because it uses the C preprocessor."
((not char)
;; Comment or docstring.
(if (nth 7 state) font-lock-doc-face font-lock-comment-face))
- ((and (char-valid-p char) (eq (char-syntax (nth 3 state)) ?\"))
+ ((and (characterp char) (eq (char-syntax (nth 3 state)) ?\"))
;; Normal string.
font-lock-string-face)
((eq (nth 3 state) ?\n)