It seems there is no closing } in your code. Try to add that in line 1017. But one would need to see if that’s all, you just show a small part of the code, not enough to give sufficient help.
If that’s a plugin which was created by someone else, then the developer is needed to fix that asap. Send this guy an email.