[TxMt] Oddity with "Insert Open/Close Tag (With Current Word)"

Brad Choate bchoate at gmail.com
Wed May 3 05:44:42 UTC 2006


The regex in question lacks parenthesis around the word lists:

# single tags
single_no_arg = /^(br|hr)$/i
single        = /^(img|meta|link|input|base|area|col|frame|param)$/i



On May 2, 2006, at 10:33 PM, Trevor Harmon wrote:

> On May 2, 2006, at 10:18 PM, Eric O'Brien wrote:
>
>> "pudding" gives me
>>
>>    <pudding></pudding>  but
>>
>> "chocolatepudding" gives me
>>
>>    <chocolatepudding />
>
> It has to do with the fact that "col" (which needs no closing tag  
> in HTML) is a substring of the second one. However, looking at the  
> regex in the bundle, I still don't see how this could happen.
>
> Trevor
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list