Added carriage return as escapable character

This commit is contained in:
2023-08-28 22:04:15 +10:00
parent bcc9df928a
commit 308fba1a8c
2 changed files with 4 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ static Toy_Token makeIntegerOrFloat(Toy_Lexer* lexer) {
static bool isEscapableCharacter(char c) {
switch (c) {
case 'n':
case 'r':
case 't':
case '\\':
case '"':