[#84280] [Ruby trunk Bug#14181] hangs or deadlocks from waitpid, threads, and trapping SIGCHLD — nobu@...
Issue #14181 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/12/15
[#84398] [Ruby trunk Bug#14220] WEBrick changes - failures on MSWIN, MinGW — Greg.mpls@...
Issue #14220 has been reported by MSP-Greg (Greg L).
3 messages
2017/12/22
[#84472] Re: [ruby-dev:50394] [Ruby trunk Bug#14240] warn four special variables: $; $, $/ $\ — Eric Wong <normalperson@...>
Shouldn't English posts be on ruby-core instead of ruby-dev?
3 messages
2017/12/26
[ruby-core:84212] [Ruby trunk Feature#14170] Add allbits?, anybits and nobits? to Ripper::Lexer::State
From:
aycabta@...
Date:
2017-12-12 12:52:51 UTC
List:
ruby-core #84212
Issue #14170 has been updated by aycabta (aycabta .). If this request is added, I'll add supporting it at upstream: https://github.com/ruby/rdoc The corresponding file: https://github.com/ruby/rdoc/blob/b477af836237a7e2750238b01a3c05d842c28227/lib/rdoc/parser/ripper_state_lex.rb The RDoc::RipperStateLex is easy to understand use-case for this issue. ---------------------------------------- Feature #14170: Add allbits?, anybits and nobits? to Ripper::Lexer::State https://bugs.ruby-lang.org/issues/14170#change-68335 * Author: aycabta (aycabta .) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- @nobu added Ripper::Lexer::State at @60665 https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/60665/diff/ext/ripper/lib/ripper/lexer.rb and I think it's necessary for RDoc, I commented it at ruby-core:84111. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/84111 aycabta (aycabta .) wrote: > In Ruby 2.5, Ripper::Lexer::State is introduced: > https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/60945/entry/ext/ripper/lib/ripper/lexer.rb#L49 > > It is for lex_state of parse.y, and has #& and #| for bit operations with lex_state_bits: > https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/60945/entry/parse.y#L78 > > RDoc uses it: > https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/60945/entry/lib/rdoc/parser/ripper_state_lex.rb#L321 > > If Integer#allbit? is implemented at 2.5, it's good for Ripper::Lexer::State and I'll use it for RDoc on 2.5. I add allbits?, anybits and nobits? to Ripper::Lexer::State by the attached patch. ---Files-------------------------------- ripper_lexer_state_bits.patch (579 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>