Project

General

Profile

Bug #1071

ripper: 改行を含む正規表現のon_regexp_endが変

Added by znz (Kazuhiro NISHIYAMA) almost 10 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.1p5000 (2009-01-30 trunk 21885) [i686-linux]
Backport:

Description

=begin
正規表現に改行が含まれていると改行の後がon_tstring_contentではなくon_regexp_endに含まれるのは変なのではないでしょうか?

% ruby-trunk -v -r ripper -r pp -e 'pp Ripper.lex("/foo\nbar/")'
ruby 1.9.1p5000 (2009-01-30 trunk 21885) [i686-linux]
[[[1, 0], :on_regexp_beg, "/"],
[[1, 1], :on_tstring_content, "foo\n"],
[[2, 0], :on_regexp_end, "bar/"]]
%
=end

Associated revisions

Revision 114f01bd
Added by nobu (Nobuyoshi Nakada) over 9 years ago

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 24557
Added by nobu (Nobuyoshi Nakada) over 9 years ago

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

Revision 24557
Added by nobu (Nobuyoshi Nakada) over 9 years ago

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

Revision 24557
Added by nobu (Nobuyoshi Nakada) over 9 years ago

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

Revision 24557
Added by nobu (Nobuyoshi Nakada) over 9 years ago

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

Revision 24557
Added by nobu (Nobuyoshi Nakada) over 9 years ago

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

Revision 24557
Added by nobu (Nobuyoshi Nakada) over 9 years ago

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

Revision 046ac45a
Added by yugui (Yuki Sonoda) about 9 years ago

merges r24557 from trunk into ruby_1_9_1.

  • parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1

Updated by ko1 (Koichi Sasada) almost 10 years ago

  • Assignee set to aamine (Minero Aoki)

=begin

=end

#2

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r24557.
=end

Also available in: Atom PDF