Fix a bug in error handling functions in lexer.py

`t.latest_newline` was mistakenly used instead of `t.lexer.latest_newline` in `t_singlequote_error()`, `t_doublequote_error()` etc.