[Top][All Lists]

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

Re: Flex patterns with " in them

From: Francisco Vila
Subject: Re: Flex patterns with " in them
Date: Sat, 1 May 2010 09:50:22 +0200

2010/5/1 David Kastrup <address@hidden>:
> Incidentally, I already happened to have one of those in my patch series
> where the consequences were all too bad.
> Here goes: flex/bison files need, for lack of better alternatives, to be
> edited in c++-mode in Emacs.
> Unmatched double quotes throw all syntactic entities off terribly.  So
> I'd tend to just double those quotes where they occur in a pattern like
> [^\\""]    { ...
> since duplication in a character set is harmless.  An uglier alternative
> would be
> [^\\"]    // "
>          { ...
> Is the former ok with people?  It does no harm, and is not likely to get
> confused with anything.  And it makes handling those files in c++-mode
> smoother in Emacs and likely in other editors as well.

I can only say that this trick is already being used in Documentation.

Francisco Vila. Badajoz (Spain) ,

reply via email to

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