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}
?
Ruby 1.9有一些新的语法元素,例如{key:value}哈希文字语法。有没有人写过或看到过更新的语法/ ruby.vim突出显示文件,它会突出显示键:就像它突出显示:键入{:key => value}?
2 个解决方案
#1
16
Try the latest version from github:
从github尝试最新版本:
http://github.com/vim-ruby/vim-ruby/blob/master/syntax/ruby.vim
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.
它在2009年12月更新,似乎用新的散列文字做了正确的事情。
#2
0
Thoughtbot's dot files might be another good place to start: https://github.com/thoughtbot/dotfiles
Thoughtbot的点文件可能是另一个好的起点:https://github.com/thoughtbot/dotfiles
#1
16
Try the latest version from github:
从github尝试最新版本:
http://github.com/vim-ruby/vim-ruby/blob/master/syntax/ruby.vim
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.
它在2009年12月更新,似乎用新的散列文字做了正确的事情。
#2
0
Thoughtbot's dot files might be another good place to start: https://github.com/thoughtbot/dotfiles
Thoughtbot的点文件可能是另一个好的起点:https://github.com/thoughtbot/dotfiles