Peter
Peter

Reputation: 132157

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

Upvotes: 12

Views: 11783

Answers (2)

Sam Backus
Sam Backus

Reputation: 1693

Thoughtbot's dot files might be another good place to start: https://github.com/thoughtbot/dotfiles

Upvotes: 0

Bill Odom
Bill Odom

Reputation: 4193

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.

Upvotes: 16

Related Questions