We have syntax highlighting problems where a here document text appears and the highlighting goes way beyond the terminator (end of file even.) I found a work around is to separate the << from the terminator identifier by quoting the identifier. For example,
$sql_h = <<SQL_19_TERMINATOR;
(here document highlighting goes on forever sometimes)
$sql_h = <<"SQL_19_TERMINATOR";
(resume normal code highlighting)
This one had bugged me for a long time, so I just wanted to share the knowledge. I got the idea from Jan's posting about putting spaces around left shift operators to workaround highlightling problems with them.