skystrife / cpptoml

cpptoml is a header-only library for parsing TOML
MIT License
587 stars 133 forks source link

cpptoml does not allow empty inline objects #90

Closed monkeydom closed 6 years ago

monkeydom commented 6 years ago

as e.g. used in redox toml files

🚫 Input TOML could not be parsed
Value must follow after a '=' at line 13
  12: #binutils = {}
➤ 13: contain = {}
  14: coreutils = {}

Simplest example:

[foo]
 bar = {}
echo -e "[foo]\n bar = {}" | ./tomlutil -
🚫 Input TOML could not be parsed
Value must follow after a '=' at line 2
  1: [foo]
➤ 2:  bar = {}
skystrife commented 6 years ago

Should be fixed with your PR now.