From d77ec5fd9ccf444323fbba9b266bb578bbb6fa96 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Mon, 8 Jul 2024 18:49:54 +0200 Subject: [PATCH] Ignore negative hex floats --- src/runestone.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runestone.jl b/src/runestone.jl index 676b2e0..d9912b5 100644 --- a/src/runestone.jl +++ b/src/runestone.jl @@ -106,7 +106,7 @@ function format_float_literals(ctx::Context, node::Node) if occursin(r, str) return nothing end - if occursin('_', str) || startswith(str, "0x") + if occursin('_', str) || occursin("0x", str) # TODO: Hex floats and floats with underscores are ignored return nothing end