summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-11 01:11:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-11 01:11:52 +0000
commit031b581efc011cc5f4bb7bb20fa4f11286463aae (patch)
tree770c6375aa95afadfa812ed9f28a937221f8e2f0 /misc
parentd98d0ad7fb4591e9147ff995ab62f4d010ab0f5d (diff)
downloadruby-031b581efc011cc5f4bb7bb20fa4f11286463aae.tar.gz
ruby-031b581efc011cc5f4bb7bb20fa4f11286463aae.tar.xz
ruby-031b581efc011cc5f4bb7bb20fa4f11286463aae.zip
* struct.c (make_struct): allow const_id for accessor names.
[ruby-core:04585] * eval.c (rb_attr): check if attribute name is local_id or const_id. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 0218fe55c..61d865060 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -398,7 +398,7 @@ The variable ruby-indent-level controls the amount of indentation.
((and (not (eobp))
(ruby-expr-beg 'expr-qstr)
(not (looking-at "%="))
- (looking-at "%[QqrxWw]?\\(.\\)"))
+ (looking-at "%[QqrxWw]?\\([^a-zA-Z0-9 \t\n]\\)"))
(goto-char (match-beginning 1))
(setq expand (not (memq (char-before) '(?q ?w))))
(setq w (match-string 1))