Fix package odin_parser bugs

This commit is contained in:
gingerBill
2019-02-09 22:34:27 +00:00
parent 4b7a09b92e
commit e16409f88a
2 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ scan :: proc(t: ^Tokenizer) -> token.Token {
} else {
kind = switch3(t, token.And, token.And_Eq, '&', token.Cmp_And);
}
case '|': kind = switch3(t, token.Or, token.Or_Eq, '&', token.Cmp_Or);
case '|': kind = switch3(t, token.Or, token.Or_Eq, '|', token.Cmp_Or);
case '~': kind = token.Xor;
case '<':
if t.ch == '-' {