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 text remains comment.block.documentation.ruby after block quotes end. #139

Open
alexr00 opened this issue Oct 29, 2021 · 1 comment

Comments

@alexr00
Copy link

alexr00 commented Oct 29, 2021

Originally from @Zibokwe in microsoft/vscode#136007.

Snippet:

=begin test =end

puts "enter a number:"

image
It happens with any kind of block quote (in Ruby only), anything that begins with =begin will turn the rest of the code green even after the =end. The code after doesn't matter, it can be literally anything.

@elia
Copy link
Contributor

elia commented Oct 29, 2021

=end must start at the beginning of the line in order to end the comment block, so the current behavior is correct

This is the correct way of using multiline comment blocks:

=begin
test
=end

puts "enter a number:"

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

No branches or pull requests

2 participants