whitequark / parser

A Ruby parser.
Other
1.59k stars 199 forks source link

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

Closed iliabylich closed 10 months ago

iliabylich commented 10 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 10 months ago

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