Ruby 1.9 has a few new syntax elements, such as the {key: value}
hash literal syntax. Has anyone written or seen an updated syntax/ruby.vim
highlighting file that will highlight key:
just like it highlights :key
in {:key => value}
?
views:
184answers:
1
+6
A:
Try the latest version from github:
http://github.com/vim-ruby/vim-ruby/blob/master/syntax/ruby.vim
It was updated in December of 2009, and seems to do the right thing with the new hash literals.
Bill Odom
2010-04-04 11:25:58
perfect, thanks. not quite sure why I hadn't tried this - but I have now!
Peter
2010-04-04 16:50:53