mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-09 09:15:30 +00:00
Fixed error token display problem on playground
This commit is contained in:
parent
970537730f
commit
3c2a53c79b
BIN
docs/native.wasm
BIN
docs/native.wasm
Binary file not shown.
2
peglib.h
2
peglib.h
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user