Add syntax error positions to the error reporting