projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
174327c
)
cperl-mode: Correctly syntax highlight index/value array slices
author
E. Choroba
<choroba@matfyz.cz>
Fri, 25 Dec 2020 06:02:01 +0000
(07:02 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 25 Dec 2020 06:02:01 +0000
(07:02 +0100)
* lisp/progmodes/cperl-mode.el (cperl-init-faces): %array[0, 1]
should use the array face, not the hash one (bug#45373).
Copyright-paperwork-exempt: yes
lisp/progmodes/cperl-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cperl-mode.el
b/lisp/progmodes/cperl-mode.el
index 87542ea133c4977bbb7501c9e67e97bcc629a0dc..2fc2d14ee6ae3e85b3fa69decfc8b6330334acda 100644
(file)
--- a/
lisp/progmodes/cperl-mode.el
+++ b/
lisp/progmodes/cperl-mode.el
@@
-5666,7
+5666,7
@@
indentation and initial hashes. Behaves usually outside of comment."
'cperl-hash-face
'cperl-array-face)
nil) ; arrays and hashes
- ("\\(\\([$@]+\\)[a-zA-Z_:][a-zA-Z0-9_:]*\\)[ \t]*\\([[{]\\)"
+ ("\\(\\([$@
%
]+\\)[a-zA-Z_:][a-zA-Z0-9_:]*\\)[ \t]*\\([[{]\\)"
1
(if (= (- (match-end 2) (match-beginning 2)) 1)
(if (eq (char-after (match-beginning 3)) ?{)