mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
r is a bad character to escape
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user