ruby 1.9 的 Vim 语法高亮 [英] Vim syntax highlighting for ruby 1.9

查看:60
本文介绍了ruby 1.9 的 Vim 语法高亮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ruby 1.9 有一些新的语法元素,例如 {key: value} 哈希文字语法.有没有人写过或看过更新的 syntax/ruby.vim 高亮文件,它会高亮 key: 就像它在 中高亮 :key 一样{:key =>值}?

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

推荐答案

试试 github 上的最新版本:

Try the latest version from github:

http://github.com/vim-ruby/vim-ruby/blob/master/syntax/ruby.vim

它于 2009 年 12 月更新,似乎对新的哈希文字做了正确的事情.

It was updated in December of 2009, and seems to do the right thing with the new hash literals.

这篇关于ruby 1.9 的 Vim 语法高亮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆