Hi,
there is a newer version of syntax/perl.vim in
<https://github.com/vim-perl/vim-perl>. Please update the
Vim standard package to that.
Explanation:
I happened to write a Perl tutorial with lots of example
code:
----------------------------------------------------------------v
@list = qw(foo bar baz);
print $_, "\n" for (@list);
----------------------------------------------------------------^
As I show this during a presentation on a screen (in Vim!),
I want these pieces to be syntax highlighted. Therefore I
wrote:
syn include @Perl syntax/perl.vim
syntax region perlcourseCode matchgroup=perlcourseSep start=+^-\{64,}v$+
end=+^-\{64,}\^$+ contains=@Perl keepend
hi link perlcourseCode NONE
hi link perlcourseSep MoreMsg
There is a bug in the old version of Perl syntax that makes
almost everything a function name and the whole highlighting
is spoiled.
The current version fixes this. The version shipped with Vim
is 3 years old. Please update.
Bertram
P.S.: The ftplugin reads:
function! s:PerlDemo()
?^-\{64,}v$?+1,/^-\{64,}\^$/y
/^-\{64,}\^$/put
.s/\^$/=/
?^-\{64,}\^$?+1,-1!perl
endfunc
command! PerlDemo silent call s:PerlDemo()
nnoremap <F5> :PerlDemo<cr>
--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
--
--
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.