libucl
libucl copied to clipboard
Parse failure with obscure error on name collision with named key hierarchy
% cat test2.ucl
section foo bar {
key = value
}
section foo baz {
key = value
}
section foo {
bar = lol /* removing this line makes parsing successful */
}
% ./objdump test2.ucl
Error occured: error on line 10 at column 3: 'invalid character in a key', character: '0xff'
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
For your example ucl should now produce the following json:
{
"section": [
{
"foo": {
"bar": {
"key": "value"
}
}
},
{
"foo": {
"baz": {
"key": "value"
}
}
},
{
"foo": {
"bar": "lol"
}
}
]
}
LGTM