Take a look at the OCaml Bundle - this is already possible by scoping empty pairs differently than filled.<br><br><br><div><span class="gmail_quote">On 8/19/06, <b class="gmail_sendername">Michael Sheets</b> <<a href="mailto:mummer@whitefalls.org">
mummer@whitefalls.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> It's mainly to give people something to scope punctuation as, right
<br>> now there isn't anything and people have been doing really odd<br>> things. Some of the punctuation is keyword.* for instance. I think<br>> the biggest uses of the scope will be snippets; having something<br>
> special happen when beside x for instance.<br><br>Forgot one of my other ideas for this… ties in with a scope selector<br>idea I've been mulling over in my head.<br><br>Would be cool if we had a way to reverse the caret direction of the
<br>selector, ie: match the scope before the caret. Basically akin to a<br>look-behind.<br><br>With that we could have a scope selector of "punc.delim.func.ending (?<br><=punc.delim.func.ending)" to have a snippet overload return inside
<br>an empty {}. Someone recently pointed out that this is hard coded<br>into TM, would fix that. Could get rid of some of the special empty<br>matches and wacky meta scopes we have for things like this.<br><br>(Not suggesting the above look-back syntax, just a dirty example)
<br>_______________________________________________<br>textmate-dev mailing list<br><a href="mailto:textmate-dev@lists.macromates.com">textmate-dev@lists.macromates.com</a><br><a href="http://lists.macromates.com/mailman/listinfo/textmate-dev">
http://lists.macromates.com/mailman/listinfo/textmate-dev</a><br></blockquote></div><br>