ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:91727] [Ruby trunk Bug#15648] Ripper::SCANNER_EVENTS に ignored_sp が含まれていない
       [not found] <redmine.issue-15648.20190309082037@ruby-lang.org>
@ 2019-03-09  8:21 ` under_free_fall
  2019-03-11  6:54 ` [ruby-core:91760] " naruse
  2019-03-13  0:32 ` [ruby-core:91806] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: under_free_fall @ 2019-03-09  8:21 UTC (permalink / raw)
  To: ruby-core

Issue #15648 has been reported by freedom (takiguchi satoru).

----------------------------------------
Bug #15648: Ripper::SCANNER_EVENTS に ignored_sp が含まれていない
https://bugs.ruby-lang.org/issues/15648

* Author: freedom (takiguchi satoru)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-03-07 trunk 67190) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Ripper::Filterにて <<~ 形式のヒアドキュメント文字列を解析した際に ignored_sp イベントが実行されますが、Ripper::SCANNER_EVENTS には含まれていません

ruby -e "require 'ripper';p Ripper::SCANNER_EVENTS.grep(/ignore/)"
[:ignored_nl]

ruby -e 'require "ripper";class RipperT < Ripper::Filter;def on_default(event, tok, f);p event;end;end;str="<<~TEST\n  :test\nTEST";RipperT.new(str).parse'
:on_heredoc_beg
:on_nl
:on_ignored_sp
:on_tstring_content
:on_heredoc_end

リファレンスマニュアル の Ripper::Filter に
> Ruby プログラムを解析して、Ripper::SCANNER_EVENTS にあるスキャナ イベントを実行します。
と書かれているため、含まれているのが適当だと考えます



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:91760] [Ruby trunk Bug#15648] Ripper::SCANNER_EVENTS に ignored_sp が含まれていない
       [not found] <redmine.issue-15648.20190309082037@ruby-lang.org>
  2019-03-09  8:21 ` [ruby-core:91727] [Ruby trunk Bug#15648] Ripper::SCANNER_EVENTS に ignored_sp が含まれていない under_free_fall
@ 2019-03-11  6:54 ` naruse
  2019-03-13  0:32 ` [ruby-core:91806] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: naruse @ 2019-03-11  6:54 UTC (permalink / raw)
  To: ruby-core

Issue #15648 has been updated by naruse (Yui NARUSE).

Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED to 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE

ruby_2_6 r67208 merged revision(s) 67200.

----------------------------------------
Bug #15648: Ripper::SCANNER_EVENTS に ignored_sp が含まれていない
https://bugs.ruby-lang.org/issues/15648#change-77035

* Author: freedom (free dom)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-03-07 trunk 67190) [x86_64-linux]
* Backport: 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE
----------------------------------------
`Ripper::Filter`にて `<<~` 形式のヒアドキュメント文字列を解析した際に `ignored_sp` イベントが実行されますが、`Ripper::SCANNER_EVENTS` には含まれていません

```console
ruby -e "require 'ripper';p Ripper::SCANNER_EVENTS.grep(/ignore/)"
[:ignored_nl]
```
```console
ruby -e 'require "ripper";class RipperT < Ripper::Filter;def on_default(event, tok, f);p event;end;end;str="<<~TEST\n  :test\nTEST";RipperT.new(str).parse'
:on_heredoc_beg
:on_nl
:on_ignored_sp
:on_tstring_content
:on_heredoc_end
```

リファレンスマニュアル の `Ripper::Filter` に
> Ruby プログラムを解析して、`Ripper::SCANNER_EVENTS` にあるスキャナ イベントを実行します。

と書かれているため、含まれているのが適当だと考えます



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:91806] [Ruby trunk Bug#15648] Ripper::SCANNER_EVENTS に ignored_sp が含まれていない
       [not found] <redmine.issue-15648.20190309082037@ruby-lang.org>
  2019-03-09  8:21 ` [ruby-core:91727] [Ruby trunk Bug#15648] Ripper::SCANNER_EVENTS に ignored_sp が含まれていない under_free_fall
  2019-03-11  6:54 ` [ruby-core:91760] " naruse
@ 2019-03-13  0:32 ` nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: nagachika00 @ 2019-03-13  0:32 UTC (permalink / raw)
  To: ruby-core

Issue #15648 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE to 2.4: REQUIRED, 2.5: DONE, 2.6: DONE

ruby_2_5 r67242 merged revision(s) 67200.

----------------------------------------
Bug #15648: Ripper::SCANNER_EVENTS に ignored_sp が含まれていない
https://bugs.ruby-lang.org/issues/15648#change-77080

* Author: freedom (free dom)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-03-07 trunk 67190) [x86_64-linux]
* Backport: 2.4: REQUIRED, 2.5: DONE, 2.6: DONE
----------------------------------------
`Ripper::Filter`にて `<<~` 形式のヒアドキュメント文字列を解析した際に `ignored_sp` イベントが実行されますが、`Ripper::SCANNER_EVENTS` には含まれていません

```console
ruby -e "require 'ripper';p Ripper::SCANNER_EVENTS.grep(/ignore/)"
[:ignored_nl]
```
```console
ruby -e 'require "ripper";class RipperT < Ripper::Filter;def on_default(event, tok, f);p event;end;end;str="<<~TEST\n  :test\nTEST";RipperT.new(str).parse'
:on_heredoc_beg
:on_nl
:on_ignored_sp
:on_tstring_content
:on_heredoc_end
```

リファレンスマニュアル の `Ripper::Filter` に
> Ruby プログラムを解析して、`Ripper::SCANNER_EVENTS` にあるスキャナ イベントを実行します。

と書かれているため、含まれているのが適当だと考えます



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-13  0:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-15648.20190309082037@ruby-lang.org>
2019-03-09  8:21 ` [ruby-core:91727] [Ruby trunk Bug#15648] Ripper::SCANNER_EVENTS に ignored_sp が含まれていない under_free_fall
2019-03-11  6:54 ` [ruby-core:91760] " naruse
2019-03-13  0:32 ` [ruby-core:91806] " nagachika00

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).