Hmmm, can't see anything obviously wrong there.
What are you editing with?
An editor with syntax highlighting should be able to highlight any unclosed strings/functions/etc.
If you can be arsed download & setting it up, I use PHPEclipse which has syntax highlighting (and various other useful features), and should highlight if there's anything unclosed in the file.