From d0ad6306727067936c9c8717dfc4e3aae5774902 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 7 Aug 2020 14:07:14 +0200 Subject: [PATCH] Fix fontification of %d in strings in cperl-mode * lisp/progmodes/cperl-mode.el (cperl-init-faces): Don't fontify directives like %d in strings as hashes (bug#22867). --- lisp/progmodes/cperl-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 5ecd5668b34..6122caf5189 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -5753,7 +5753,7 @@ indentation and initial hashes. Behaves usually outside of comment." (if (eq (char-after (match-beginning 2)) ?%) 'cperl-hash-face 'cperl-array-face) - t) ; arrays and hashes + nil) ; arrays and hashes ("\\(\\([$@]+\\)[a-zA-Z_:][a-zA-Z0-9_:]*\\)[ \t]*\\([[{]\\)" 1 (if (= (- (match-end 2) (match-beginning 2)) 1) -- 2.39.2