Open alexr00 opened 2 years ago
Originally from @Zibokwe in https://github.com/microsoft/vscode/issues/136007.
Snippet:
=begin test =end puts "enter a number:"
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.
=end must start at the beginning of the line in order to end the comment block, so the current behavior is correct
=end
This is the correct way of using multiline comment blocks:
Originally from @Zibokwe in https://github.com/microsoft/vscode/issues/136007.
Snippet:
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.