diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-15 18:06:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 18:06:27 +0200 |
commit | 24275b26b82bf262dc48715ed5a3b11066f5dec4 (patch) | |
tree | b67c8c8b368bc907e00ae8ce3ec740329125a346 /modules/gdscript/gdscript_parser.h | |
parent | f06c44a02c2b643034babb8b90c89a4a22d0c62e (diff) | |
parent | c076a2b7e93b67d99a4b76462e4c4e1d92c738c5 (diff) |
Merge pull request #36726 from ThakeeNathees/invalid-break-parsing
Fix: break, continue outside of a loop, match statement handled when parsing
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r-- | modules/gdscript/gdscript_parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index cfcca9584e..7dedb6d6f9 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -231,6 +231,8 @@ public: List<Node *> statements; Map<StringName, LocalVarNode *> variables; bool has_return = false; + bool can_break = false; + bool can_continue = false; Node *if_condition = nullptr; //tiny hack to improve code completion on if () blocks |