all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#45373: cperl-mode: Correctly syntax highlight index/value array slices
@ 2020-12-22 19:51 E. Choroba
  2020-12-25  6:02 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: E. Choroba @ 2020-12-22 19:51 UTC (permalink / raw)
  To: 45373

[-- Attachment #1: Type: text/plain, Size: 20 bytes --]

Patch attached.

Ch.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch; NAME=0001-cperl-mode-Correctly-syntax-highlight-index-value-ar.patch, Size: 1020 bytes --]

From 3d34a658b8fe8de791f65f97bce4cb19545faadf Mon Sep 17 00:00:00 2001
From: "E. Choroba" <choroba@matfyz.cz>
Date: Tue, 22 Dec 2020 20:44:24 +0100
Subject: [PATCH] cperl-mode: Correctly syntax highlight index/value array
 slices

%array[0, 1] should use the array face, not the hash one.
---
 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 87542ea133..2fc2d14ee6 100644
--- 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)) ?{)
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-31  4:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-22 19:51 bug#45373: cperl-mode: Correctly syntax highlight index/value array slices E. Choroba
2020-12-25  6:02 ` Lars Ingebrigtsen
2020-12-25 17:27   ` E. Choroba
2020-12-25 19:41     ` Lars Ingebrigtsen
2020-12-30 21:36       ` E. Choroba
2020-12-31  4:49         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.