cperl-mode: Correctly syntax highlight index/value array slices
* 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
This commit is contained in:
parent
174327cefa
commit
290ee3474d
1 changed files with 1 additions and 1 deletions
|
@ -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)) ?{)
|
||||
|
|
Loading…
Add table
Reference in a new issue