whitequark / parser

A Ruby parser.
Other
1.58k stars 198 forks source link

- lexer.rl: accept tabs before closing heredoc delimiter #990

Closed iliabylich closed 8 months ago

iliabylich commented 8 months ago

Closes https://github.com/whitequark/parser/issues/989.

The bug is not related to blocks specifically but example from the report can also be parsed now:

$ /bin/cat test.rb
foo do
    <<~DESC
        bar
    DESC
end

$ bin/ruby-parse --33 test.rb
(block
  (send nil :foo)
  (args)
  (str "bar\n"))
iliabylich commented 8 months ago

Turns out the latest minitest also defines BASE_DIR that conflicts with our global variable 😞