[TxMt] Oniguruma: how to insert a digit immediately after a $n mirror in a snippet?

Timothy Bates timothy.c.bates at gmail.com
Sat Jul 7 20:07:05 UTC 2007


Hi,

In a snippet with a mirror, how do you allow a mirror to be followed
immediately by a number without that number being interpreted as a part of
the mirror value? 

i.e.,   make it that $11 is interpreted as <contents of group 1><digit 1>

$11 is interpreted as match 11
$1\1 (and \\1 and \\\\1) all let the slashes flow right through rather than
consuming them as escapes.

Any clues or is this a limitation in snippets?

Tim

____________________
Famous lauded but completely wrong judgements:
When Oliver Wendell Holmes defined the class of speech which was not
protected by the first amendment as being the class of speech which includes
shouting "fire" in crowded theatre when there was none, he did so in a case
where he was justifying the jailing of Yiddish protestors against the draft
in WWI. 

It is of course most critical to protect speech exactly when there is debate
over whether there is a "fire" (incitement to imminent violence) or not, and
that is what Holmes failed utterly to do.





More information about the textmate mailing list