Hilight Ruby New Hash In Emacs

Not fully tested, let me know if it mess up your buffer.

my-ruby-mode.el
(font-lock-add-keywords
 'ruby-mode
 '(("\\(\\b\\sw[_a-zA-Z0-9]*:\\)\\(?:\\s-\\|$\\)" (1 font-lock-constant-face))))
comments powered by Disqus