summaryrefslogtreecommitdiff
path: root/tools/common/toml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/common/toml.cpp')
-rw-r--r--tools/common/toml.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/common/toml.cpp b/tools/common/toml.cpp
index 285d22a4..4e8e6da6 100644
--- a/tools/common/toml.cpp
+++ b/tools/common/toml.cpp
@@ -264,8 +264,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(m_lexer, ": Unexpected token in TOML file after entry - ", t));
}
else