From: David Kastrup <dak@gnu.org>
Cc: Juri Linkov <juri@jurta.org>,
bob@rattlesnake.com, Drew Adams <drew.adams@oracle.com>,
emacs-devel@gnu.org
Subject: Re: info faces for strings and quotations
Date: Thu, 07 Oct 2004 17:13:47 +0200 [thread overview]
Message-ID: <x5hdp6blxw.fsf@lola.goethe.zz> (raw)
In-Reply-To: <jwvy8iitw49.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 07 Oct 2004 10:58:55 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 2. The pb of not interpreting " to begin a string if it is escaped (\") is
>> no doubt fixable, at the risk of complicating the regexp. Suggested fixes
>> welcome.
>
> Prefix the regexp with "\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*". The (match-end) of
> this regexp is guaranteed to not be preceded by an odd number
> of backspashes.
>
> You can find this regexp used by various major modes for comment-start-skip.
If you don't need regexps, it is usually quite faster just to check
with
(zerop (mod (save-excursion (skip-chars-backward "\\\\")) 2))
whether you have an even number of preceding backslashes.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2004-10-07 15:13 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-03 7:05 info faces for strings and quotations Drew Adams
2004-10-05 7:15 ` Drew Adams
2004-10-05 7:30 ` Miles Bader
2004-10-06 8:34 ` Matt Hodges
2004-10-05 8:58 ` Drew Adams
2004-10-05 11:43 ` Stefan
2004-10-05 11:56 ` Stefan
2004-10-05 16:11 ` Drew Adams
2004-10-06 2:25 ` Luc Teirlinck
2004-10-06 4:19 ` Drew Adams
2004-10-06 4:28 ` Miles Bader
2004-10-06 7:40 ` Drew Adams
2004-10-06 21:32 ` Drew Adams
2004-10-06 4:53 ` Stefan Monnier
2004-10-06 7:07 ` Drew Adams
2004-10-06 17:07 ` Robert J. Chassell
2004-10-06 21:36 ` Drew Adams
2004-10-07 5:53 ` Juri Linkov
2004-10-07 6:53 ` Drew Adams
2004-10-07 14:58 ` Stefan Monnier
2004-10-07 15:13 ` David Kastrup [this message]
2004-10-07 17:01 ` Stefan Monnier
2004-10-08 5:13 ` Drew Adams
2004-10-07 15:13 ` Kim F. Storm
2004-10-07 16:35 ` David Kastrup
2004-10-08 0:33 ` Luc Teirlinck
2004-10-08 16:04 ` Richard Stallman
2004-10-08 16:51 ` Luc Teirlinck
2004-10-09 15:45 ` Richard Stallman
2004-10-08 20:00 ` Robert J. Chassell
2004-10-07 5:57 ` Juri Linkov
2004-10-07 15:22 ` w3 mode Camm Maguire
2004-10-07 17:03 ` Stefan Monnier
2004-10-07 17:25 ` Camm Maguire
2004-10-07 17:37 ` Mark Plaksin
2004-10-07 17:45 ` Kevin Rodgers
2004-10-08 16:05 ` Richard Stallman
2004-10-08 17:44 ` David Kastrup
2004-10-07 15:28 ` unexec development Camm Maguire
2004-10-15 14:10 ` Camm Maguire
2004-10-15 14:35 ` Jan D.
2004-10-15 21:11 ` Camm Maguire
2004-10-16 13:52 ` Richard Stallman
2004-10-06 8:44 ` info faces for strings and quotations Oliver Scholz
2004-10-07 5:55 ` Juri Linkov
2004-10-07 7:13 ` Drew Adams
-- strict thread matches above, loose matches on Subject: below --
2004-10-05 16:15 LENNART BORGMAN
2004-10-05 16:28 ` Drew Adams
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=x5hdp6blxw.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=bob@rattlesnake.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.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.