Fix last merge

This commit is contained in:
Jason Turner 2018-03-02 15:09:52 -07:00
parent 2818ec67df
commit 476a752a08
2 changed files with 7 additions and 12 deletions

View File

@ -1065,12 +1065,9 @@ namespace chaiscript
if (unicode_size > 0) {
process_unicode();
}
}
void finalize_unicode()
{
if (unicode_size > 0) {
process_unicode();
} catch (const std::invalid_argument &) {
} catch (const exception::eval_error &) {
// Something happened with parsing, we'll catch it later?
}
}
@ -1307,7 +1304,6 @@ namespace chaiscript
}
}
cparser.finalize_unicode();
return cparser.is_interpolated;
}();
@ -1366,7 +1362,6 @@ namespace chaiscript
for (auto s = start + 1, end = m_position - 1; s != end; ++s) {
cparser.parse(*s, start.line, start.col, *m_filename);
}
cparser.finalize_unicode();
}
if (match.size() != 1) {