It seems Vim needs to be instructed how to scan for the begining of the multiline statements to correctly and efficiently highlight lanuages. See :help syn-sync-maxlines
svn path=/nixpkgs/trunk/; revision=14431