From the comments I gather that you are getting the error when leaving out the closing bracket of a function call.
The odd display is not a terminal error, Python does not raise a syntax error until it realizes that the bracket is not there, which can happen several lines below in your code as function calls are allowed to span multiple lines.
Here, you probably have something on the line (7) after the one where python raises a SyntaxError. Python expected a closing bracket before, so it highlights the very last character of the line before, which is the last valid spot for the (missing) bracket.