Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

iliabylich
Copy link
Collaborator

Closes #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
Copy link
Collaborator Author

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

@iliabylich iliabylich merged commit c61f13c into whitequark:master Jan 12, 2024
9 checks passed
@iliabylich iliabylich deleted the fix-989 branch January 12, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntax error on heredoc inside block indented with tabs
1 participant