public
Created

Hilight new ruby hash in Emacs

  • Download Gist
my-ruby-mode.el
Emacs Lisp
1 2 3
(font-lock-add-keywords
'ruby-mode
'(("\\(\\b\\sw[_a-zA-Z0-9]*:\\)\\(?:\\s-\\|$\\)" (1 font-lock-constant-face))))

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.