diff options
author | John Hodge <tpg@ucc.asn.au> | 2018-12-30 13:18:42 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2018-12-30 13:18:42 +0800 |
commit | 2e9e8169126fbf9d14bed00bcb3185607f728767 (patch) | |
tree | 3a880adb9aa80ae35a83903b18a27757c3d1c3f6 | |
parent | bd64912c9847479800ba24c1e1fea7191197c591 (diff) | |
download | mrust-2e9e8169126fbf9d14bed00bcb3185607f728767.tar.gz |
Common TOML - Allow EOF right after a line
-rw-r--r-- | tools/common/toml.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/common/toml.cpp b/tools/common/toml.cpp index 489f32b6..7e24b610 100644 --- a/tools/common/toml.cpp +++ b/tools/common/toml.cpp @@ -263,8 +263,7 @@ TomlKeyValue TomlFile::get_next_value() } if( m_current_composite.empty() ) { - // TODO: Allow EOF? - if(t.m_type != Token::Type::Newline) + if(t.m_type != Token::Type::Newline && t.m_type != Token::Type::Eof) throw ::std::runtime_error(::format("Unexpected token in TOML file after entry - ", t)); } else |