On Tue, 27 Jul 2010, batz wrote:
> If one has:
> else # Here is a comment
> the comment section is shown as an error, this is due to line 219 of
> perl.vim. It should be (as one possibility):
> syn match perlElseIfError "[^[:space:]{#]\+" contained
> There may be other cases this will fail on, but it fixes the problem
> with comments.
Fixed this in my fork[1] of Andy's vim-perl repo on Github. I changed it to:
syn match perlElseIfError "\s\+if" contained
which makes the 'if' show up as an error if you accidentally use 'else
if' instead of 'elsif'. Also added 'elseif' as an error.
Hopefully it'll get pulled back into the 'real' repo, and all of it'll
get into Vim 7.3.
(Andy, CC:'ed here. Also sent a 'pull request'... but I'm a bit of a
github n00b when it comes to actual collaboration.)
--
Best,
Ben
[1] http://github.com/benizi/vim-perl/commit/ddf895
--
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