mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 05:15:30 +00:00
parent
ed84bb7219
commit
86208ed9e9
5
peglib.h
5
peglib.h
@ -1003,6 +1003,9 @@ public:
|
||||
size_t len = static_cast<size_t>(-1);
|
||||
|
||||
if (!for_label_) { c.cut_stack.push_back(false); }
|
||||
auto se = scope_exit([&]() {
|
||||
if (!for_label_) { c.cut_stack.pop_back(); }
|
||||
});
|
||||
|
||||
size_t id = 0;
|
||||
for (const auto &ope : opes_) {
|
||||
@ -1030,8 +1033,6 @@ public:
|
||||
id++;
|
||||
}
|
||||
|
||||
if (!for_label_) { c.cut_stack.pop_back(); }
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user