On Fr, 17 Jun 2016, Mugurel Chirica wrote:

> Hello, I am new to bug reporting for Vim and sorry if I make any mistakes.
> 
> Bug description: does not match correct ruby blocks when using ruby regex
> notation.
> 
> Reproduce:
> Activate macros/matchit.vim in .vimrc
> 
> Create file.rb with content:
> 
> class TestClass
>   def match?(string)
>     string =~ /pattern for test/
>   end
> end
> 
> move cursor on second to last end
> press %
> observe the cursor is now on the work "for" instead being on the word "def"
> 
> All plugins disabled.

This is caused by the ftplugin/ruby.vim filetype plugin, which defines 
the b:match_skip variable, to skip matches for the matchit plugin. If I 
see this correctly, you would need to add the rubyRegexp syntax group to 
that pattern. 

Now, the ftplugin/ruby.vim file is maintained at 
https://github.com/vim-ruby/vim-ruby/ where this bug is already fixed 
for almost 2 and a half years. So perhaps, ask the vim-ruby people to 
submit a new version to Bram.

Best,
Christian
-- 
Chaoten entführten Afrika.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui