summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-05 10:01:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-05 10:01:54 +0000
commit77163291e791f215e217d882caedf1e8b3c29d93 (patch)
tree9e89a3575c3a1a279d8477c6582c2fd8d4b8402f /misc
parent10ebe554c6f94984bc548e3c3603b039800f0997 (diff)
downloadruby-77163291e791f215e217d882caedf1e8b3c29d93.tar.gz
ruby-77163291e791f215e217d882caedf1e8b3c29d93.tar.xz
ruby-77163291e791f215e217d882caedf1e8b3c29d93.zip
* dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
[ruby-dev:22486] * pack.c (pack_unpack): unpack requires big endian offet (OFF16B and OFF32B). The patch is from Minero Aoki in [ruby-dev:22489] * pack.c (OFF16B): add big-endian offset again. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el5
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)))