mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Fix #237
This commit is contained in:
parent
6fe01cf310
commit
dc18c3d017
2
peglib.h
2
peglib.h
@ -1576,7 +1576,7 @@ class Cut : public Ope, public std::enable_shared_from_this<Cut> {
|
||||
public:
|
||||
size_t parse_core(const char * /*s*/, size_t /*n*/, SemanticValues & /*vs*/,
|
||||
Context &c, std::any & /*dt*/) const override {
|
||||
c.cut_stack.back() = true;
|
||||
if (!c.cut_stack.empty()) { c.cut_stack.back() = true; }
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user