GNU bug report logs - #997
perl-mode: Incorrect syntax highlighting for regex at top-level

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 18 Sep 2008 13:25:04 UTC

Severity: minor

Tags: confirmed, patch

Found in versions 28.0.50, 27.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #45 received at control <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: 997 <at> debbugs.gnu.org
Cc: Harald Jörg <haj <at> posteo.de>, jidanni <at> jidanni.org
Subject: Re: bug#997: perl-mode: Incorrect syntax highlighting for regex at
 top-level
Date: Mon, 19 Sep 2022 13:03:08 -0300
[Message part 1 (text/plain, inline)]
tags 997 patch
quit


haj <at> posteo.de (Harald Jörg) writes:

> Correctly detecting "nothing" in a regex needs some care.  So I'd like
> to treat this as a separate bug which remains open for now.

I attach a patch to fix this bug, by detecting that we moved to the
beginning of buffer when searching for something before the "/".
[0001-perl-mode-is-a-regexp-match-if-there-s-nothing-befor.patch (text/x-patch, attachment)]

This bug report was last modified 2 years and 246 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.