diff --git a/src/be/jeffcheasey88/peeratcode/parser/java/JavaParser.java b/src/be/jeffcheasey88/peeratcode/parser/java/JavaParser.java index 7c6d862..6610774 100644 --- a/src/be/jeffcheasey88/peeratcode/parser/java/JavaParser.java +++ b/src/be/jeffcheasey88/peeratcode/parser/java/JavaParser.java @@ -581,6 +581,12 @@ public class JavaParser extends Parser { .unique((validator) -> validator.validate((token) -> token.getValue().equals("}"))) .end((a,b) -> a); + operation_while.then(new RedirectStateTree<>(operation, (global, local) -> global.set(null))) + .end((a,b) -> { + System.out.println("JHUGYUFKHJO"); + return a; + }); + operation_while.then((validator) -> validator.validate((token) -> token.getValue().equals(";"))) .end((a,b) -> a);