diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-25 06:29:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-25 06:29:27 +0000 |
commit | eea16da9f859d0e876fd331066a230a44b9a6a50 (patch) | |
tree | f2ec985d66f5d99a203277cf0961d960228d441e /misc/ruby-mode.el | |
parent | d98cd107dbb710dd17f8f8446f746e8d602c74ec (diff) | |
download | ruby-eea16da9f859d0e876fd331066a230a44b9a6a50.tar.gz ruby-eea16da9f859d0e876fd331066a230a44b9a6a50.tar.xz ruby-eea16da9f859d0e876fd331066a230a44b9a6a50.zip |
001225
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r-- | misc/ruby-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index cfb0b3a0d..c0754efad 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -663,13 +663,14 @@ An end of a defun is found by moving forward from the beginning of one." (or (boundp 'font-lock-variable-name-face) (setq font-lock-variable-name-face font-lock-type-face)) + (add-hook 'ruby-mode-hook '(lambda () (make-local-variable 'font-lock-syntactic-keywords) (setq font-lock-syntactic-keywords '(("\\$\\([#\"'`$\\]\\)" 1 (1 . nil)) ("\\(#\\)[{$@]" 1 (1 . nil)) - ("\\(/\\)\\([^/]\\|\\\\/\\)*\\(/\\)" + ("\\(/\\)\\([^/\n]\\|\\\\/\\)*\\(/\\)" (1 (7 . ?')) (3 (7 . ?'))))) (make-local-variable 'font-lock-defaults) |