summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-12 04:55:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-12 04:55:19 +0000
commit8343f008c1eedd975797203b2d09b0385bd13abd (patch)
tree54bedecbd60107ef68f03c98441bb7c8a686c60d /misc
parent5c07f0fa4dedf5a4337e1ff70d7161701cb71ad9 (diff)
* misc/ruby-mode.el (ruby-parse-partial): handle stringified
symbols properly using ruby-forward-string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 25c6b3008d..b9cd9e313a 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -506,8 +506,9 @@ The variable ruby-indent-level controls the amount of indentation.
(setq nest (cons (cons nil pnt) nest))
(setq depth (1+ depth)))
(goto-char pnt))
- ((looking-at ":\\(['\"]\\)\\(\\\\.\\|[^\\\\]\\)*\\1")
- (goto-char (match-end 0)))
+ ((looking-at ":\\(['\"]\\)")
+ (goto-char (match-beginning 1))
+ (ruby-forward-string (buffer-substring (match-beginning 1) (match-end 1)) end))
((looking-at ":\\([-,.+*/%&|^~<>]=?\\|===?\\|<=>\\)")
(goto-char (match-end 0)))
((looking-at ":\\([a-zA-Z_][a-zA-Z_0-9]*[!?=]?\\)?")