You have the same problem in line 10: The token designating the end of the here-document (in your case EOF) has to be at the very beginning of the line, without any whitespaces.
Also, keep in mind that anything between the beginning and the end marker is taken literally, including any whitespaces you put at the beginning of a line.