diff options
Diffstat (limited to 'lisp/progmodes/perl-mode.el')
-rw-r--r-- | lisp/progmodes/perl-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index eb630c2ed54..4b2941bd966 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -295,7 +295,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) |