docs: Rule legend() {
          StringBuilderVar text = new StringBuilderVar();
          return Sequence(Sp(), "legend", Sp(), ":",
                  OneOrMore(TestNot(Newline()), BaseParser.ANY, text.append(matchedChar())),
                  Newline(),
                  ((ChartNode) peek()).displayLegend(text.getString()));
      }