When the console tells you that there is a problem on line #, look not just on that line, but on the lines before and after. It usually tells you that it found the error on the line after where the error actually is.
Decided to look at your script. Line 327 is colorShiftColor = 0.678 0.000 1.000 1.000. I wont spoon feed you what is wrong, but compare that line to the lines above and below, its missing two things that the others have. The first is fairly obvious, so ill leave that up to you to work out, the second is less obvious for a new scripter. When defining a value which has multiple words in it, you must encase it with quotation marks ( " ). Ill leave the fixing to you.