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

Ruby unrecognized heredoc #67

Closed
zufuliu opened this issue Mar 26, 2022 · 1 comment
Closed

Ruby unrecognized heredoc #67

zufuliu opened this issue Mar 26, 2022 · 1 comment
Labels
ruby Caused by the ruby lexer

Comments

@zufuliu
Copy link
Contributor

zufuliu commented Mar 26, 2022

Following heredoc are not unrecognized, first one due to prevStyle == SCE_RB_GLOBAL and method call .chomp after delimiter, second one due to more arguments (,) after delimiter:

# heredoc prevStyle == SCE_RB_GLOBAL
$stdout.puts <<~EOT.chomp
	squiggly heredoc
EOT
# heredoc method call, other argument
A::say <<-ONE, __FILE__, __LINE__
content for heredoc one
ONE

Attachment fix.
ruby-heredoc-0325.zip

Originally posted by @zufuliu in #65 (comment)

@nyamatongwe
Copy link
Member

Committed fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Caused by the ruby lexer
Projects
None yet
Development

No branches or pull requests

2 participants