[前][次][番号順一覧][スレッド一覧]

ruby-changes:4125

From: ko1@a...
Date: Tue, 26 Feb 2008 16:53:57 +0900 (JST)
Subject: [ruby-changes:4125] matz - Ruby:r15615 (trunk): * misc/ruby-mode.el (ruby-calculate-indent): should distinguish

matz	2008-02-26 16:53:40 +0900 (Tue, 26 Feb 2008)

  New Revision: 15615

  Modified files:
    trunk/ChangeLog
    trunk/misc/ruby-mode.el

  Log:
    * misc/ruby-mode.el (ruby-calculate-indent): should distinguish
      comment and # in strings.  [ruby-dev:33874]

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/misc/ruby-mode.el?r1=15615&r2=15614&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15615&r2=15614&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15614)
+++ ChangeLog	(revision 15615)
@@ -1,3 +1,8 @@
+Tue Feb 26 16:53:13 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* 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@r...>
 
 	* array.c (combi_len, rb_ary_product): check for overflow.
Index: misc/ruby-mode.el
===================================================================
--- misc/ruby-mode.el	(revision 15614)
+++ misc/ruby-mode.el	(revision 15615)
@@ -713,7 +713,7 @@
 	      (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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]