From 05a0c30adcf0a8e0d918b8ed32804e9f8c163003 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 29 Nov 2010 12:11:19 +0000 Subject: * 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 --- misc/ruby-mode.el | 1 + 1 file changed, 1 insertion(+) (limited to 'misc/ruby-mode.el') 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) -- cgit v1.2.3