Merge pull request #7117 from BradLewis/fix/hexadecimal-float-kind

Set token kind to float for hex floats
This commit is contained in:
gingerBill
2026-07-24 11:58:18 +02:00
committed by GitHub

View File

@@ -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)