All, Sorry to bother the list with this stupid question, I know nothing of RegEx and have been trying to grasp it, and the way it works in TextMate. Basically for my needs all I need to figure out is how to do if statements. Here is what I am trying to do:
Snippet: function():$1 {
}
if $1 != Void, then put in a return statement like this:
function():Array {
return }
Which I can add the variable name to return later.
Any help and I will be extremely grateful. Thanks for your time.
best, Aaron Clinger http://aaronclinger.com
Aaron,
I believe if you look into the Obj-C bundle you will find something similar - judging from the Obj-C screencast I saw a couple of days ago.
Dan
Dan, Got it! Thanks. I should have thought to look at other bundles.
-Aaron
On 4/2/06, Daniel Käsmayr daniel@kaesmayr.net wrote:
Aaron,
I believe if you look into the Obj-C bundle you will find something similar - judging from the Obj-C screencast I saw a couple of days ago.
Dan
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