Correctly show error locations when a :exc:`SyntaxError` is raised in the basic REPL. Patch by Sergey B Kirpichev.