update README, made parser handle invalid last line

This commit is contained in:
ado
2021-02-27 20:18:38 +01:00
parent fa185fc655
commit a9b73dfc37
3 changed files with 36 additions and 26 deletions

View File

@@ -234,6 +234,17 @@ private:
}
}
void set_error_unterminated_escape() {
if constexpr (string_error) {
error_.clear();
splitter_.set_error_unterminated_escape();
error_.append(splitter_.error_msg());
} else {
error_ = true;
}
}
void set_error_multiline_limit_reached() {
if constexpr (string_error) {
error_.clear();