diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-29 12:11:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-29 12:11:19 +0000 |
commit | 05a0c30adcf0a8e0d918b8ed32804e9f8c163003 (patch) | |
tree | bc7859bda0219df6d60cb7dbc36f06af549a32e0 /misc | |
parent | 62cd77327bcd94624fd8d1188386200b39b85e30 (diff) | |
download | ruby-05a0c30adcf0a8e0d918b8ed32804e9f8c163003.tar.gz |
* misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
hash key labels as symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 0072f1e0d5..2f685f8b8d 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -1392,6 +1392,7 @@ buffer position `limit' or the end of the buffer." ;; symbols '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" 2 font-lock-reference-face) + '("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-reference-face) ;; expression expansion '("#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)" 0 font-lock-variable-name-face t) |