GNU bug report logs -
#15874
24.3.50; exit! not properly font-locked in ruby-mode
Previous Next
Reported by: Bozhidar Batsov <bozhidar <at> batsov.com>
Date: Tue, 12 Nov 2013 12:40:01 UTC
Severity: minor
Found in version 24.3.50
Fixed in version 24.4
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
On 12/4/13 11:31 AM, Dmitry Gutov wrote:
> Bozhidar Batsov<bozhidar <at> batsov.com> writes:
>
>> The built-in Kernel#exit! method is not properly font-locked. exit is
>> font-locked with the built-in face, but the ! is font-locked with the
>> default face.
>
> Any ideas for a regexp that matches (any) non-symbol character?
`\sCODE'
matches any character whose syntax is CODE. Here CODE is a
character that represents a syntax code: thus, `w' for word
constituent, `-' for whitespace, `(' for open parenthesis, etc.
To represent whitespace syntax, use either `-' or a space
character. *Note Syntax Class Table::, for a list of syntax codes
and the characters that stand for them.
`\SCODE'
matches any character whose syntax is not CODE.
...
-- Syntax class: symbol constituent
"Symbol constituents" (designated by `_') are the extra characters
that are used in variable and command names along with word
constituents. For example, the symbol constituents class is used
in Lisp mode to indicate that certain characters may be part of
symbol names even though they are not part of English words.
These characters are `$&*+-_<>'. In standard C, the only
non-word-constituent character that is valid in symbols is
underscore (`_').
> http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00684.html
>
> I'm not sure we want to move `!' to the symbol syntax class. Maybe we
> even should move `?' back to punctuation.
--
Kevin Rodgers
Denver, Colorado, USA
This bug report was last modified 11 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.