all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "E. Choroba" <choroba@matfyz.cz>
To: 45373@debbugs.gnu.org
Subject: bug#45373: cperl-mode: Correctly syntax highlight index/value array slices
Date: Tue, 22 Dec 2020 20:51:40 +0100 (CET)	[thread overview]
Message-ID: <alpine.LSU.2.21.2012222050180.9287@silent> (raw)

[-- 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


             reply	other threads:[~2020-12-22 19:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-22 19:51 E. Choroba [this message]
2020-12-25  6:02 ` bug#45373: cperl-mode: Correctly syntax highlight index/value array slices 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LSU.2.21.2012222050180.9287@silent \
    --to=choroba@matfyz.cz \
    --cc=45373@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.