Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index c37953f04ad3c24480d8f57303e2ade4340ae02c..dbce26b09ec9746a63f1e405f00603a731deadb9 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -832,6 +832,8 @@ class Parser : public ParserBase<ParserTraits> { |
void set_context(PatternContext context) { context_ = context; } |
void RecurseIntoSubpattern(AstNode* pattern, Expression* value) { |
+ if (!*ok_) return; |
+ |
Expression* old_value = current_value_; |
current_value_ = value; |
recursion_level_++; |