Explain this, anyone!
Type "chocolate" then press the keyboard shortcut for "Insert Open/ Close Tag (With Current Word)" ("^-<).
I get
<chocolate />
When I expected to see
<chocolate></chocolate>
eh?
"pudding" gives me
<pudding></pudding> but
"chocolatepudding" gives me
<chocolatepudding />
Is this one of them Easter Eggs? ;)
eo
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
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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On May 3, 2006, at 12:44 AM, Brad Choate wrote:
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
I fixed this bug before you guys even found it. ;) If you checkout the current version of the bundles this is no longer an issue.
James Edward Gray II