Created
January 12, 2012 12:07
-
-
Save doitian/1600148 to your computer and use it in GitHub Desktop.
Hilight new ruby hash in Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(font-lock-add-keywords | |
'ruby-mode | |
'(("\\(\\b\\sw[_a-zA-Z0-9]*:\\)\\(?:\\s-\\|$\\)" (1 font-lock-constant-face)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment