mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-01 03:38:55 +00:00
Merge pull request #7117 from BradLewis/fix/hexadecimal-float-kind
Set token kind to float for hex floats
This commit is contained in:
@@ -510,6 +510,7 @@ scan_number :: proc(t: ^Tokenizer, seen_decimal_point: bool) -> (Token_Kind, str
|
||||
case 'z': int_base(t, &kind, 12, "illegal dozenal integer")
|
||||
case 'x': int_base(t, &kind, 16, "illegal hexadecimal integer")
|
||||
case 'h':
|
||||
kind = .Float
|
||||
prev := t.offset
|
||||
advance_rune(t)
|
||||
scan_mantissa(t, 16)
|
||||
|
||||
Reference in New Issue
Block a user