Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim syntax highlighting for ruby 1.9

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}?

like image 724
Peter Avatar asked Apr 02 '10 01:04

Peter


1 Answers

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.

like image 165
Bill Odom Avatar answered Sep 28 '22 10:09

Bill Odom