This post just saved the day for me as well.
I had 3 scripts of third party code that I was combining into a single sproc. In the original code there was lots of nested multi line comments that seemd to be tripping the MODIFY command up.
I reformatted them and now it works.
Cheers to the OP!