Fix bug in wrong line number parsed for heredocs