Originally from @Zibokwe in microsoft/vscode#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.