[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...

なかだです。

29 messages 2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "K.Kosako" <kosako@...> 2003/01/15

nobu.nakada@nifty.ne.jpさんの

[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/15

なひです。

[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@... 2003/01/17

なかだです。

[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/17

なひです。

[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>

もりきゅうです。win32だけかもしれません。

22 messages 2003/01/04
[#19301] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19302] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19303] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19304] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19306] Re: [BUG] errno == 0 — nobu.nakada@... 2003/01/05

なかだです。

[ruby-dev:19365] Re: lstripped here-document (Re: comments and continuing strings on the next line)

From: nobu.nakada@...
Date: 2003-01-17 00:36:47 UTC
List: ruby-dev #19365
なかだです。

At Fri, 17 Jan 2003 09:05:29 +0900,
Nobuyoshi-Nakada wrote:
> TABを考えなくていいならそれがベストだろうとは思うんですが。とり
> あえず、EOSの前の空白と一致する部分だけを削除するようにしてみま
> した。

すいません、ちょっと訂正。

[ruby-dev:19261]とは分けたほうがいいかな。


--- parse.y~	Fri Jan 17 09:34:05 2003
+++ parse.y	Fri Jan 17 09:34:13 2003
@@ -3185,4 +3185,5 @@ lstrip(ptr, len, prep, pren)
 	if (i > 0) memmove(p, p + i, (pend -= i) + pren - p);
 	if (!(p = memchr(p, '\n', pend - p))) break;
+	p++;
     }
     return pend + pren - ptr;
@@ -3315,5 +3316,4 @@ here_document(here)
 	} while (!whole_match_p(eos, len, indent));
 	pushback(c);
-	++nth;
 	str = rb_str_new(tok(), toklen());
     }


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread