the script editor has a maximum line length... it would be nice if you could just simply not enter more then that but alas, you can and it will be truncated...

something to solve this problem is to use $& to span stuff over multiple lines