mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
small fixes to the parser
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user