Fix overzealous closing of ruby heredocs
Fix overzealous closing of ruby heredocs

Fixes #2516

mawww/kakoune,casimir/kakoune,mawww/kakoune,danr/kakoune,alexherbo2/kakoune,lenormf/kakoune,lenormf/kakoune,danr/kakoune,Somasis/kakoune,alexherbo2/kakoune,Somasis/kakoune,lenormf/kakoune,Somasis/kakoune,jkonecny12/kakoune,casimir/kakoune,alexherbo2/kakoune,casimir/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,mawww/kakoune,danr/kakoune,mawww/kakoune,Somasis/kakoune,danr/kakoune,jkonecny12/kakoune,jkonecny12/kakoune,lenormf/kakoune,casimir/kakoune