[TxMt] Conditional insertion with nested placeholder.

Matt Foster matt.p.foster at gmail.com
Wed Nov 12 09:28:17 UTC 2008


Hi All,

I'm writing a bundle for gnuplot[1], and I've run into some difficulty
with a small snippet I'm trying to write.

What I have so far is this:
for [${1:n} ${2:=} ${2/(in)|(.+)/(?1:"":\:)/}] $0

and what I'd like to have is something more like this:
for [${1:n} ${2:=} ${2/(in)|(.+)/(?1:"$3":$3\:$4)/}] $0

The conditional expansion seems to work ok, but unfortunately the
placeholders inside it don't appear.

Can anyone give me any pointers, or tell me what I'm doing wrong?

Cheers,
Matt

[1]: github.com/mattfoster/gnuplot-tmbundle

-- 
Matt Foster | http://my-mili.eu/matt



More information about the textmate mailing list