mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +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
|
// 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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user