I've tried setting the php files in question as HTML in settings > template data language but it doesn't help.
I could set all the pages to have .html exts (as this the only thing that works) but then I lose my php formatting and syntax checking.
It's very annoying and makes debugging difficult. In the debugger all it tells me is "Unexpected token" and an incorrect line number.
I'm using PHPStorm 8.0.2.
This seems like a bug. How do I fix this?