You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RubyParser fails when there is a newline before the Safe Navigation Operator:
irb(main):005:0> RubyParser.new.parse"a\n&.b"Racc::ParseError: (string):2 :: parseerroronvalue"&."(error)from/Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/racc/parser.rb:528:in`on_error' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/ruby_parser-3.8.3/lib/ruby_parser_extras.rb:1227:in `on_error' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/racc/parser.rb:259:in `_racc_do_parse_c'from/Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/racc/parser.rb:259:in`do_parse' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/ruby_parser-3.8.3/lib/ruby_parser_extras.rb:1139:in `blockinprocess' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/timeout.rb:91:in `block in timeout'from/Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/timeout.rb:33:in`block in catch' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/timeout.rb:33:in `catch' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/timeout.rb:33:in `catch'from/Users/daniel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/timeout.rb:106:in`timeout' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/ruby_parser-3.8.3/lib/ruby_parser_extras.rb:1127:in `process' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/ruby_parser-3.8.3/lib/ruby_parser_extras.rb:1470:in `block in process'from/Users/daniel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/ruby_parser-3.8.3/lib/ruby_parser_extras.rb:1468:in`each' from /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/ruby_parser-3.8.3/lib/ruby_parser_extras.rb:1468:in `process' from (irb):5 from /Users/daniel/.rbenv/versions/2.3.1/bin/irb:11:in `<main>'irb(main):006:0>
RubyParser fails when there is a newline before the Safe Navigation Operator:
In contrast, this works:
Ruby version: 2.3.1
RubyParser version: 3.8.3
The text was updated successfully, but these errors were encountered: