[TxMt] Re: TextMate Regex vs Oyster Regex

Robert J. Rockefeller bob at bobrockefeller.com
Mon Feb 9 12:51:05 UTC 2015


Yes, sadly I was trying for multiple lines. I read about that in the docs, but didn’t get a full appreciation for the implications until I read your article: http://www.apeth.com/nonblog/stories/textmatebundle.html

That is recommended reading for anyone working on TextMate 2 grammar definitions.

> On Feb 8, 2015, at 7:12 PM, Matt Neuburg <matt at tidbits.com> wrote:
> 
> How does it not work. You're not expecting it to work across multiple lines, are you? m. 
> 
> 
>> On Feb 8, 2015, at 2:48 PM, Bob Rockefeller <bob at bobrockefeller.com> wrote:
>> 
>> Thanks!
>> 
>> And Oyster does Ruby regex, too. So I’m good. Except that what Oyster shows working still does not work in TextMate. :(
>> 
>> This regex:
>> 
>> [`]{3}[\s\S]*?[`]{3}
>> 
>> looks to match a ``` and ``` Markdown code block in Oyster, but doesn’t in TextMate. Have I missed something else?
>> 
>> {   name = 'markup.raw.block.markdown';
>>    match = '[`]{3}[\s\S]*?[`]{3}';
>> }
> 
> 
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list