Some regexp pattern breaks the syntax highlighting.

Morita Sho morita-pub-en at inz.sakura.ne.jp
Fri Sep 11 16:17:18 EDT 2009


Hi,

Some regexp pattern breaks the syntax highlighting.


How to reproduce the problem:

First of all, create a ruby script as following and open it with Vim.

% cat test.rb
func /\(/
puts

At this point, the script will be highlighted correctly.
Then, hit Ctrl-E to scroll down the window (the line "func /\(/" goes
out of the screen), and hit Ctrl-L to redraw. After redrawing the window,
the line "puts" will be highlighted wrongly as a regexp literal.

It seems that the highlighting works if the line "func /\(/" is visible,
but won't work if the line "func /\(/" is out of the screen.

I tested latest syntax/ruby.vim pulled from git repository, but it doesn't
solve the problem.


Thanks,
-- 
Morita Sho <morita-pub-en at inz.sakura.ne.jp>




More information about the vim-ruby-devel mailing list