[TxMt] Re: Python bundle syntax highlighting bug

Jay Soffian jay-txmt at soffian.org
Mon Aug 13 15:21:06 UTC 2007


On Aug 13, 2007, at 5:59 AM, Eric Abrahamsen wrote:

>> I think you are probably right.  Does anyone else have an opinion  
>> on this?
>
> I agree this doesn't seem right, and can produce some confusing  
> results. On the other hand, it's very nice to have regex highlighting.

I prefer to trade-off false-positives for the nicety of regex  
highlighting.

> Wouldn't it be possible to have the first string located within a  
> re.XXXXX('') pattern be highlighted as regex? Am I wrong, or are  
> those the only places where regex appear?

s = r"...."
pattern = re.compile(s)

is always, possible, if contrived. I think re.XXXXX is an interesting  
suggestion though.

j.




More information about the textmate mailing list