In reply to David Whitford.

Those error messages are caused by having one or more strings that do not have closing quotation marks, such as
x = "Joe;
or
y = 'Fred;
Sometimes the only solution is to manually search for quotation marks until you find the one that is not part of a matching pair.