diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-06 14:00:54 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-06 14:00:54 +0000 |
| commit | b5f72bc6cb12301a5bc0dfdaf54d1d3d23c7948d (patch) | |
| tree | 3377751600ae0fbdebe4a5f234604853f9c3c394 /misc | |
| parent | 6608596896a8acf92401fdb2530d16b93f2ffd90 (diff) | |
| download | ruby-b5f72bc6cb12301a5bc0dfdaf54d1d3d23c7948d.tar.gz ruby-b5f72bc6cb12301a5bc0dfdaf54d1d3d23c7948d.tar.xz ruby-b5f72bc6cb12301a5bc0dfdaf54d1d3d23c7948d.zip | |
* eval.c (rb_mod_modfunc): should break if m has no super class.
[ruby-dev:22498]
* backport changes from 1.9
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/ruby-mode.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 631f78f78..081218c40 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -964,7 +964,10 @@ balanced expression is found." ;; get current method (or class/module) (if (re-search-backward (concat "^[ \t]*\\(def\\|class\\|module\\)[ \t]+" - "\\(" ruby-symbol-re "+\\)") + "\\(" + ;; \\. for class method + "\\(" ruby-symbol-re "\\|\\." "\\)" + "+\\)") nil t) (progn (setq mlist (list (match-string 2))) |
