r is a bad character to escape

This commit is contained in:
2023-01-31 12:38:42 +00:00
parent fcd1cdf70b
commit 90f91a234a

View File

@@ -273,9 +273,6 @@ static Toy_Opcode string(Toy_Parser* parser, Toy_ASTNode** nodeHandle) {
//unescape based on the character //unescape based on the character
switch(parser->previous.lexeme[++i]) { switch(parser->previous.lexeme[++i]) {
case 'r':
buffer[strLength++] = '\r';
break;
case 'n': case 'n':
buffer[strLength++] = '\n'; buffer[strLength++] = '\n';
break; break;