This paper proposed a novel integrated localization and communication framework, where reconfigurable intelligent surface-assisted non-orthogonal multiple access simultaneously transmits the communication and localisation signals via line-ofsight links. The bit error rate (BER) performance for communication users and the localization performance for localization users in terms of code phase estimation error (CPEE) and tracking error of the delay locked loop (DLL) are analyzed. The approximate closed forms for BER, CPEE and tracking error of the DLL are derived under Rayleigh fading channels. Finally, the Monte-Carlo simulations are used to validate the analysis. The results show that RIS-NOMA can enhance communication and localization performance compared to NOMA-only. Significantly, the corresponding performance values, i.e. BER, CPEE and tracking error of the DLL, decrease with the number of reflecting elements.