lua-toml
lua-toml copied to clipboard
toml decoder/encoder for Lua
There are some perfectly good pull requests that have been submitted, but not merged, is this rock still maintained? If not, maybe you should consider passing it to somebody who...
```lua local TOML = require( 'toml' ) for k, v in pairs({["a\t"] = "b"}) do print(k) --> "a " end for k, v in pairs(TOML.parse([["a\t" = "b"]])) do print(k) -->...
If last line in a file is '#', toml.parse enter in infinite loop and freeze ```lua local toml = require( 'toml' ) local tomlStr = '[default]\ntest="test"\nnewTest="new test"\n#' print(toml.parse(tomlStr)) ```
Hey, I'm wondering how much modification would be required to enable this library to parse input from a file? Because at the moment it looks like you would need to...
Excepted: ``` particle_color_graph = [[1.0, 1.0, 1.0, 0.3], [0.0, 0.0, 0.0, 0.0]] ``` Got: ``` [[particle_color_graph]] 1 = 1 2 = 1 3 = 1 4 = 0.3 [[particle_color_graph]] 1...
I'm not sure why that was in, but the lirary can't understand it itself when it decodes these strings back.
TOML supports integer values in other bases, so it would be nice if this could be parsed. I tried inserting the code below to the `parseNumber` function, right after line...
For instance this did not work before: ```toml [t] name = "test" [[t.ent]] ok = "foo" ```
It would be nice if lua-toml could parse TOML with date primitives in it. The dates could produce Lua date tables () or a custom object with a `__tostring` meta-method...