On Thu, Sep 08, 2005 at 01:06:31AM +1000, Doug Kearns wrote:
> This improves the b:match_words pattern. Among other things, it now
> handles the if/unless/while/until/rescue modifiers.
> It could be refined but the patterns largely match those in the syntax
> file which is useful for updating purposes and does no harm.
Except searchpairs() doesn't work the way I thought it did so multiline
patterns are difficult to implement and probably not worth the effort
right now. This means something like:
won't work. Strangely enough I can only find one example of this at the
moment but in the past I've come across a significant number and
received a bug report against the syntax file.
The pattern below does not attempt to handle loops with the optional do
properly yet. So you can currently only jump between the 'do and 'end'
in this example. If anyone has more experience with matchit and has a
solution please let me know. Loops without the 'do' should work as
for ... do
Most of the problems in these config files seem to stem from this