[TxMt] Re: possible format strings bug
Matt Neuburg
matt at tidbits.com
Fri Apr 4 16:44:08 UTC 2014
On Apr 4, 2014, at 9:31 AM, Matt Neuburg <matt at tidbits.com> wrote:
> Of course, in real life, it's all going to be quite a bit longer, so now I have to go see if I can write it without losing my mind. :)
Nailed it!
match = '^(?<eq>={1,5}) (?<title>\w.*)$\n?';
name = 'markup.heading.level.${eq/=(?<two>=)?(?<three>=)?(?<four>=)?(?<five>=)?/${five:?4:${four:?3:${three:?2:${two:?1:0}}}}/}.asciidoc';
Thanks again, Allan. m.
PS I think I need to lie down now.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
More information about the textmate
mailing list