mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Revert "Fixed error posision problem in Repetition operator"
This reverts commit 6ed41b0571
.
This commit is contained in:
parent
6ed41b0571
commit
222466d07a
BIN
docs/native.wasm
BIN
docs/native.wasm
Binary file not shown.
2
peglib.h
2
peglib.h
@ -901,6 +901,7 @@ public:
|
||||
count++;
|
||||
}
|
||||
|
||||
auto save_error_pos = c.error_pos;
|
||||
while (n - i > 0 && count < max_) {
|
||||
c.push_capture_scope();
|
||||
auto se = scope_exit([&]() { c.pop_capture_scope(); });
|
||||
@ -920,6 +921,7 @@ public:
|
||||
vs.tokens.erase(vs.tokens.begin() +
|
||||
static_cast<std::ptrdiff_t>(save_tok_size));
|
||||
}
|
||||
c.error_pos = save_error_pos;
|
||||
break;
|
||||
}
|
||||
i += len;
|
||||
|
Loading…
Reference in New Issue
Block a user