I was wondering if anyone knew how, or if it was even possible, to automatically detect injected languages in HEREDOC strings the same way that they are in single and double-quoted strings. In my development house, we have a kind of coding convention where we use HEREDOC strings named for the language/code type that's contained within. i.e.
$query = <<<SQL
`id` = 1;