Browse Source

Ignore negative hex floats

pull/19/head
Fredrik Ekre 1 year ago
parent
commit
d77ec5fd9c
No known key found for this signature in database
GPG Key ID: DE82E6D5E364C0A2
  1. 2
      src/runestone.jl

2
src/runestone.jl

@ -106,7 +106,7 @@ function format_float_literals(ctx::Context, node::Node)
if occursin(r, str) if occursin(r, str)
return nothing return nothing
end end
if occursin('_', str) || startswith(str, "0x") if occursin('_', str) || occursin("0x", str)
# TODO: Hex floats and floats with underscores are ignored # TODO: Hex floats and floats with underscores are ignored
return nothing return nothing
end end

Loading…
Cancel
Save