1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* misc/ruby-mode.el (ruby-calculate-indent): should distinguish

comment and # in strings.  [ruby-dev:33874]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-02-26 07:53:40 +00:00
parent 3b0f5058fa
commit 99e8314b3b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 26 16:53:13 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* misc/ruby-mode.el (ruby-calculate-indent): should distinguish
comment and # in strings. [ruby-dev:33874]
Tue Feb 26 16:41:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (combi_len, rb_ary_product): check for overflow.

View file

@ -713,7 +713,7 @@ The variable ruby-indent-level controls the amount of indentation.
(setq end nil))
(goto-char (or end pos))
(skip-chars-backward " \t")
(setq begin (if (nth 0 state) pos (cdr (nth 1 state))))
(setq begin (if (and end (nth 0 state)) pos (cdr (nth 1 state))))
(setq state (ruby-parse-region parse-start (point))))
(or (bobp) (forward-char -1))
(and