Skip to content

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

Merged
iliabylich merged 1 commit intowhitequark:masterfrom
iliabylich:fix-989
Jan 12, 2024
Merged

- lexer.rl: accept tabs before closing heredoc delimiter#990
iliabylich merged 1 commit intowhitequark:masterfrom
iliabylich:fix-989

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
@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