Skip to content

0.4.0

Latest
Compare
Choose a tag to compare
@LebJe LebJe released this 02 Jan 17:07
· 1 commit to main since this release
1a9b2a5

Added

  • toml.Int for formatted integers.
local formattedIntegers = {
	int1 = toml.Int.new(2582, toml.formatting.int.octal),
	int2 = toml.Int.new(3483, toml.formatting.int.binary),
	int3 = toml.Int.new(5791, toml.formatting.int.hexadecimal)
}

print(toml.encode(formattedIntegers))
--[[
int1 = 0o5026
int2 = 0b110110011011
int3 = 0x169F
--]]
  • formattedIntsAsUserdata can be passed to the options table of toml.decode (see "Decoding Options" in the README).
  • Updated to toml++ v3.4.0.
  • Updated to MagicEnum v0.9.5.
  • toml.lua compiles with MSVC.