summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-29 12:11:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-29 12:11:19 +0000
commit05a0c30adcf0a8e0d918b8ed32804e9f8c163003 (patch)
treebc7859bda0219df6d60cb7dbc36f06af549a32e0
parent62cd77327bcd94624fd8d1188386200b39b85e30 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--misc/ruby-mode.el1
2 files changed, 6 insertions, 0 deletions
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 <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
+ hash key labels as symbols.
+
Mon Nov 29 18:31:31 2010 Martin Duerst <duerst@it.aoyama.ac.jp>
* 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)