small fixes to the parser

This commit is contained in:
DanielGavin
2020-12-09 21:33:10 +01:00
parent b6aa549eb8
commit 934809397f
4 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ scan_escape :: proc(t: ^Tokenizer) -> bool {
n: int;
base, max: u32;
switch t.ch {
case 'a', 'b', 'e', 'f', 'n', 't', 'v', '\\', '\'', '\"':
case 'a', 'b', 'e', 'f', 'n', 't', 'v', 'r', '\\', '\'', '\"':
advance_rune(t);
return true;