]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak how cperl-mode fontifies hashes and arrays
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Sep 2020 12:36:29 +0000 (14:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Sep 2020 12:36:29 +0000 (14:36 +0200)
* 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).

lisp/progmodes/cperl-mode.el

index 5dee5007e2eeeef7d0fad6586044217d0a836abb..7a1c2e4d24ea264466b8cfdc94ade0a1638e351b 100644 (file)
@@ -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