Update odin_tokenizer to support quaternion literals

This commit is contained in:
gingerBill
2019-08-26 11:56:04 +01:00
parent 7bc146e6fd
commit 4908d1ebdd
+2 -1
View File
@@ -343,7 +343,8 @@ scan_number :: proc(t: ^Tokenizer, seen_decimal_point: bool) -> (token.Kind, str
} }
// NOTE(bill): This needs to be here for sanity's sake // NOTE(bill): This needs to be here for sanity's sake
if t.ch == 'i' { switch t.ch {
case 'i', 'j', 'k':
kind^ = token.Imag; kind^ = token.Imag;
advance_rune(t); advance_rune(t);
} }