Project

General

Profile

Bug #10543

ruby -c and ripper inconsistency: /(?<n>a(b|\g<n>))/

Added by akr (Akira Tanaka) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0dev (2014-11-26 trunk 48577) [x86_64-linux]
[ruby-dev:48741]

Description

以下のように、/(?a(b|\g))/ というだけのソースは
ruby -c では問題無しとなりますが、
Ripper.sexp では構文木でなく nil が返ってきてしまいます。

% cat z.rb                   
/(?<n>a(b|\g<n>))/
% ./ruby -c z.rb
Syntax OK
% ./ruby -rripper -e 'p Ripper.sexp(STDIN.read)' < z.rb  
nil
% ./ruby -v                                                
ruby 2.2.0dev (2014-11-26 trunk 48577) [x86_64-linux]

Related issues

Related to Ruby trunk - Bug #10437: ruby -c and ripper inconsistency: /*/Closed10/28/2014Actions

Associated revisions

Revision d40aad1c
Added by nobu (Nobuyoshi Nakada) over 4 years ago

parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

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

Revision 48655
Added by nobu (Nobuyoshi Nakada) over 4 years ago

parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

Revision 48655
Added by nobu (Nobuyoshi Nakada) over 4 years ago

parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

Revision 48655
Added by nobu (Nobuyoshi Nakada) over 4 years ago

parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

Revision 48655
Added by nobu (Nobuyoshi Nakada) over 4 years ago

parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

Revision 48655
Added by nobu (Nobuyoshi Nakada) over 4 years ago

parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

Revision 48655
Added by nobu (Nobuyoshi Nakada) over 4 years ago

parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

History

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

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

Applied in changeset r48655.


parse.y: fix a typo

  • parse.y (regexp_contents): fix a typo. pointed out by wanabe. [ruby-dev:48741] [Bug #10543]

Updated by nagachika (Tomoyuki Chikanaga) over 4 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED

it seems introduced at r48504.

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Related to Bug #10437: ruby -c and ripper inconsistency: /*/ added

Also available in: Atom PDF