emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: info faces for strings and quotations


From: Stefan Monnier
Subject: Re: info faces for strings and quotations
Date: Thu, 07 Oct 2004 10:58:55 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

> 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.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]