fix: detect comment in stricter way

This commit is contained in:
ToruNiina
2019-06-21 13:10:02 +09:00
parent 9e6d8e76d0
commit a68543a895

View File

@@ -382,7 +382,7 @@ struct region final : public region_base
// the above comment is not for "value", but {key="value"}.
if(comment_found == std::find_if(this->last(), comment_found,
[](const char c) noexcept -> bool {
return c == '}' || c == ']';
return !(c == ' ' || c == '\t' || c == ',');
}))
{
// unwrap the first '#' by std::next.