[ruby mode] Fix state-copying bug
[php mode] Highlight interpolated vars in heredoc strings

Closes #2855