From b57d227aa0cb60f509153f75b4ef900ebb6ad033 Mon Sep 17 00:00:00 2001 From: yep84 <52426534+yep84@users.noreply.github.com> Date: Tue, 2 Jul 2019 14:45:27 +0200 Subject: [PATCH] Allow to parse uppercase hex number --- compiler/scanner.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/scanner.v b/compiler/scanner.v index c0c7eed680..5f5c3013da 100644 --- a/compiler/scanner.v +++ b/compiler/scanner.v @@ -94,7 +94,7 @@ fn (s mut Scanner) ident_number() string { if c == `.` { is_float = true } - is_good_hex := is_hex && (c == `x` || (c >= `a` && c <= `f`)) + is_good_hex := is_hex && (c == `x` || (c >= `a` && c <= `f`) || (c >= `A` && c <= `F`)) // 1e+3, 1e-3, 1e3 if !is_hex && c == `e` && s.pos + 1 < s.text.len { next := s.text[s.pos + 1]