Fixed error token display problem on playground

This commit is contained in:
yhirose 2022-06-25 07:31:17 -04:00
parent 970537730f
commit 3c2a53c79b
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -658,7 +658,7 @@ using Log = std::function<void(size_t, size_t, const std::string &)>;
*/
struct ErrorInfo {
const char *error_pos = nullptr;
std::vector<std::pair<const char *, bool>> expected_tokens;
std::vector<std::pair<std::string, bool>> expected_tokens;
const char *message_pos = nullptr;
std::string message;
mutable const char *last_output_pos = nullptr;