Adds ending comment for functions and long events, etc.