diff options
Diffstat (limited to 'tools/common/toml.cpp')
-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 |