diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-12 04:54:00 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-12 04:54:00 +0000 |
commit | 8110d523333c48d8a2fd7018d98e193a4f00dbcc (patch) | |
tree | 0ae45121789e916cd9ddb5c627da48da5a0e2aef /misc | |
parent | 2c645e7ab61bc7562a58c35f6bd12d335b7281e4 (diff) | |
download | ruby-8110d523333c48d8a2fd7018d98e193a4f00dbcc.tar.gz |
* 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/trunk@13892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 6e9ac7ae45..bc7284a94f 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]*[!?=]?\\)?") |