summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-05 14:36:29 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-05 14:36:29 +0200
commit81657507c296843971e4a921377451ecc3739e5e (patch)
treeeda9a15aa9a39b4c664fe46218d4e8b6fe60b77f
parenteca6c9281f0506f9c8c866ae2025288c44ea994a (diff)
downloademacs-81657507c296843971e4a921377451ecc3739e5e.tar.gz
Tweak how cperl-mode fontifies hashes and arrays
* lisp/progmodes/cperl-mode.el (cperl-init-faces): Fontify hashes and arrays (%foo and @foo) before the keywords, since the keyword regexps are "wider" and the hash/array regexp just match those two things (bug#22867).
-rw-r--r--lisp/progmodes/cperl-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 5dee5007e2e..7a1c2e4d24e 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -5776,8 +5776,8 @@ indentation and initial hashes. Behaves usually outside of comment."
t-font-lock-keywords)
cperl-font-lock-keywords cperl-font-lock-keywords-1
cperl-font-lock-keywords-2 (append
- cperl-font-lock-keywords-1
- t-font-lock-keywords-1)))
+ t-font-lock-keywords-1
+ cperl-font-lock-keywords-1)))
(if (fboundp 'ps-print-buffer) (cperl-ps-print-init))
(if (or (featurep 'choose-color) (featurep 'font-lock-extra))
(eval ; Avoid a warning