in reply to Useful syntax highlighting to illustrate variable interpolation?

:version VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 12 2010 12:48:02)
shows '->{sane}' in different color. You doing something wrong, maybe?
  • Comment on Re: Useful syntax highlighting to illustrate variable interpolation?
  • Download Code

Replies are listed 'Best First'.
Re^2: Useful syntax highlighting to illustrate variable interpolation?
by will_ (Scribe) on Feb 07, 2011 at 11:31 UTC

    I also tried with VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 28 2010 11:05:08) but didn't see ->{sane} highlighted. I'm using the out-of-the-box default Perl syntax highlighting...

Re^2: Useful syntax highlighting to illustrate variable interpolation?
by Anonymous Monk on Feb 07, 2011 at 11:28 UTC
    Not for me, gvim_portable
    VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 23 2009 16:31:33) " Last Change: 2007 March 13 " Location: http://www.van-laarhoven.org/vim/syntax/perl.vim
      Ah-ha!
      In my case the syntax file seems to be more fresh:
      fisher% cd /usr/share/vim/vim72/syntax/ fisher% head -7 perl.vim " Vim syntax file " Language: Perl 5 " Maintainer: Andy Lester <andy@petdance.com> " URL: http://github.com/petdance/vim-perl/tree/master " Last Change: 2009-09-2 " Contributors: Andy Lester <andy@petdance.com> " Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
      This is vanilla packages from debian/squeeze (stable release starting from 5th feb 2011 =)