From ff0abdc55e57f42f75204429c9eca471df48d835 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 10 Apr 2002 05:24:47 +0000 Subject: [PATCH] * misc/ruby-mode.el (ruby-font-lock-keywords): fontify symbols for unary operators and aset. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ misc/ruby-mode.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index eaf62c15ae..ff3b28d3fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 10 14:16:45 2002 Nobuyoshi Nakada + + * misc/ruby-mode.el (ruby-font-lock-keywords): fontify symbols for + unary operators and aset. + Tue Apr 9 13:40:31 2002 Nobuyoshi Nakada * lib/mkmf.rb (try_link0): need expand macro in command, sync with diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index ec70feedd5..b806d2f977 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -874,7 +874,7 @@ An end of a defun is found by moving forward from the beginning of one." '("^\\s *def\\s +\\([^( ]+\\)" 1 font-lock-function-name-face) ;; symbols - '("\\(^\\|[^:]\\)\\(:\\([-+/%&|^~`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|\\[\\]\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" + '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" 2 font-lock-reference-face) ;; expression expansion '("#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)"