GNU bug report logs - #16915
24.3.50; [ruby-mode] Comments in regexps using the extended syntax are not font-locked properly

Previous Next

Package: emacs;

Reported by: Bozhidar Batsov <bozhidar <at> batsov.com>

Date: Sat, 1 Mar 2014 13:32:01 UTC

Severity: minor

Found in version 24.3.50

Full log


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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Bozhidar Batsov <bozhidar <at> batsov.com>
Cc: 16915 <at> debbugs.gnu.org
Subject: Re: bug#16915: 24.3.50; [ruby-mode] Comments in regexps using the
 extended syntax are not font-locked properly
Date: Sun, 02 Mar 2014 17:03:10 +0200
On 02.03.2014 13:03, Bozhidar Batsov wrote:
> Native regexp support is preferable IMO. After all - regexps are not
> strings. If they were treated differently we’d also be able to have
> extra highlighting for things like named groups, quantifiers, regexp
> classes, etc. I guess, however, that this would require a lot of work.

Since the regexp syntax can be different between languages, we probably 
won't get all of that automatically. The direct benefits from the native 
support I can see is highlighting comments (for regexps with appropriate 
modifiers, in languages that support that), new faces for regexp itself, 
and maybe for groups, quantifiers, etc.

The highlighting of the elements inside regexp would probably have to be 
done the old-fashioned way, in font-lock-keywords (although that code 
could be shared between many languages). We could implement something 
like it right now, the main difference is just the lack of standard faces.




This bug report was last modified 11 years and 95 days ago.

Previous Next


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