[TxMt] Re: A little help on some custom syntax?

Allan Odgaard mailinglist at textmate.org
Mon Nov 3 06:58:13 UTC 2008


On 31 Oct 2008, at 04:07, andresmb wrote:

> How can i define a scope selector for this:
>
> <anything> do
>  something
> end
>
> I want to highlight <anything> when it is before do block,
> what pattern should i add to ruby language bundle to acomplish this?

What is the end goal here? A pattern like: ^.*?(?=\s+do$) will match  
anything up to a ‘do’, but whether or not an end will come later, it  
can’t say.

Just adding that to the Ruby grammar though will surely break (other)  
things.




More information about the textmate mailing list