mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Update odin_tokenizer to support quaternion literals
This commit is contained in:
@@ -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
|
||||
if t.ch == 'i' {
|
||||
switch t.ch {
|
||||
case 'i', 'j', 'k':
|
||||
kind^ = token.Imag;
|
||||
advance_rune(t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user