From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: 15874@debbugs.gnu.org
Subject: bug#15874: 24.3.50; exit! not properly font-locked in ruby-mode
Date: Wed, 04 Dec 2013 23:34:35 -0700 [thread overview]
Message-ID: <l7p6lr$4c7$1@ger.gmane.org> (raw)
In-Reply-To: <8761r4bh8h.fsf@yandex.ru>
On 12/4/13 11:31 AM, Dmitry Gutov wrote:
> Bozhidar Batsov<bozhidar@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
next prev parent reply other threads:[~2013-12-05 6:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-12 12:38 bug#15874: 24.3.50; exit! not properly font-locked in ruby-mode Bozhidar Batsov
2013-12-04 18:31 ` Dmitry Gutov
2013-12-04 19:20 ` Stefan Monnier
2013-12-04 22:33 ` Dmitry Gutov
2013-12-04 23:15 ` Dmitry Gutov
2013-12-05 2:50 ` Stefan Monnier
2013-12-05 3:42 ` Dmitry Gutov
2013-12-05 19:02 ` Stefan Monnier
2013-12-06 2:44 ` Dmitry Gutov
2013-12-06 4:57 ` Stefan Monnier
2013-12-06 4:23 ` Dmitry Gutov
2013-12-05 6:34 ` Kevin Rodgers [this message]
2013-12-05 10:58 ` Dmitry Gutov
2013-12-05 14:50 ` Kevin Rodgers
2013-12-05 17:25 ` Dmitry Gutov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='l7p6lr$4c7$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=15874@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).