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
+2
View File
@@ -317,6 +317,8 @@ is_operator :: proc(kind: Token_Kind) -> bool {
return true;
case .In, .Not_In:
return true;
case .If:
return true;
}
return false;
}
+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;