Skip to content

Commit

Permalink
Fix ininline-empty-table.toml test. (e.g. foo = {} #) - which is used…
Browse files Browse the repository at this point in the history
… in redox a lot.
  • Loading branch information
monkeydom authored and skystrife committed Oct 22, 2018
1 parent 16e62c9 commit 8d62a4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/cpptoml.h
Original file line number Diff line number Diff line change
Expand Up @@ -3102,8 +3102,10 @@ class parser
throw_parse_exception("Unterminated inline table");

consume_whitespace(it, end);
parse_key_value(it, end, tbl.get());
consume_whitespace(it, end);
if (*it != '}') {
parse_key_value(it, end, tbl.get());
consume_whitespace(it, end);
}
} while (*it == ',');

if (it == end || *it != '}')
Expand Down

0 comments on commit 8d62a4c

Please sign in to comment.