diff --git a/ChangeLog b/ChangeLog index d021e68f05..235d7778bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 29 21:11:16 2010 Nobuyoshi Nakada + + * misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal + hash key labels as symbols. + Mon Nov 29 18:31:31 2010 Martin Duerst * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121): 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)