[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: info faces for strings and quotations
From: |
David Kastrup |
Subject: |
Re: info faces for strings and quotations |
Date: |
Thu, 07 Oct 2004 18:35:00 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
address@hidden (Kim F. Storm) writes:
> Stefan Monnier <address@hidden> 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.
>
> Wouldn't it be fairly trivial to enhance regex to recognize something like
>
> \\\{0,e}
>
> meaning an even (possibly zero) number of \'es.
>
> (likewise for \{0,o}, meaning an odd number of (or no) \'es )
That's too ad-hoc. Rather use \{0,,2} and \{1,,2}.
Anyway, it does not buy much that I can see here: you still need to
make sure that there is no leading \ before the expression in
question.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- RE: info faces for strings and quotations, (continued)
- Re: info faces for strings and quotations, Stefan Monnier, 2004/10/06
- RE: info faces for strings and quotations, Drew Adams, 2004/10/06
- Re: info faces for strings and quotations, Robert J. Chassell, 2004/10/06
- RE: info faces for strings and quotations, Drew Adams, 2004/10/06
- Re: info faces for strings and quotations, Juri Linkov, 2004/10/07
- RE: info faces for strings and quotations, Drew Adams, 2004/10/07
- Re: info faces for strings and quotations, Stefan Monnier, 2004/10/07
- Re: info faces for strings and quotations, Kim F. Storm, 2004/10/07
- Re: info faces for strings and quotations,
David Kastrup <=
- Re: info faces for strings and quotations, David Kastrup, 2004/10/07
- Re: info faces for strings and quotations, Stefan Monnier, 2004/10/07
- RE: info faces for strings and quotations, Drew Adams, 2004/10/08
- Re: info faces for strings and quotations, Luc Teirlinck, 2004/10/07
- Re: info faces for strings and quotations, Richard Stallman, 2004/10/08
- Re: info faces for strings and quotations, Luc Teirlinck, 2004/10/08
- Re: info faces for strings and quotations, Richard Stallman, 2004/10/09
- Re: info faces for strings and quotations, Robert J. Chassell, 2004/10/08
- Re: info faces for strings and quotations, Juri Linkov, 2004/10/07
- w3 mode, Camm Maguire, 2004/10/07