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?
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.