Re: [PATCH take 3 0/4] color-words improvements
- From
- Santi Béjar <santi@agolina.net>
- Date
- Jan 16, 2009, 09:02 UTC
- Message-ID
- <adf1fd3d0901160102y32a08e26q96728495fc0b6fcf@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0901160253210.3586@pacific.mpi-cbg.de>
2009/1/16 Johannes Schindelin <Johannes.Schindelin@gmx.de>:
Show 20 quoted lines
> Hi,
>
> On Fri, 16 Jan 2009, Santi Béjar wrote:
>
>> If everything works as I think (it's late night :-) with the above two lines:
>>
>> matrix[a,b,c]
>> matrix{d,b,c}
>>
>> the word diff would be
>>
>> matrix<RED>[<GREEN>{<RED>a<GREEN>d<RESET>,b,c<RED>]<GREEN>}<RED>
>
> So I guess that you want something like
>
> [A-Za-z0-9]+|[^A-Za-z0-9 \t]+
>
> Note: I only want to help you finding what you actually want, I am not
> trying to find it for you.
>Thanks all for the answers.
So, I see, it is a matter of finding the right regexp.
But the only use case for me is of this kind, and I think for the others too. So maybe an easier way to specify it could be worth. But I'll write an alias as this is the only regexp I would use, apart from the default word diff.
Thanks, Santi