fix some small parsing bugs with heredocs and interpolations