/**
 * @license
 * Copyright 2020 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package foam.lib.parse;

public class Until
  implements Parser {

  protected Parser until_;

  public Until(Parser until) {
    until_ = new Not(until, AnyChar.instance());
  }

  public PStream parse(PStream ps, ParserContext x) {
    return until_.parse(ps, x);
  }
}

@@ -260,16 +260,42 @@
 _ = new 
+Seq(%0A      new Repeat(new 
 Not(unti
@@ -315,16 +315,36 @@
 stance()
+)),%0A      until%0A    
 );%0A  %7D%0A%0A

Fix Java Until parser (maybe).