bug-bison
[Top][All Lists]
Advanced

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

Re: [PATCH 10/11] quote consistently and make tests pass with new quotin


From: Paul Eggert
Subject: Re: [PATCH 10/11] quote consistently and make tests pass with new quoting from gnulib
Date: Sun, 29 Jan 2012 20:47:50 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0

On 01/29/2012 10:05 AM, Akim Demaille wrote:

>> Wouldn't it be better if we didn't have yet another
>> environment variable to worry about?
> 
> Would you prefer LC_CTYPE as C or POSIX?

Sorry, I've lost context, but yes it'd be OK if Bison's quoting
style depended on whether the LC_CTYPE locale was "C" or not.

>> -empty.y:4.8: missing ''' at end of file
>> +empty.y:4.8: missing '\'' at end of file
> 
> I am not sure this is a real improvement.  In this case, I think
> I would prefer issuing "'" (those three characters).  WDYT?

Sure, if you want to be that fancy, you can use double-quotes
if the token contains a single quote.  But what would happen
if the token contains both single and double quotes?  Would
we fall back on \ in that case, e.g.:

   missing '"\'"' at end of file

if the actual token is:

   "'"

?




reply via email to

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