increase property

Parser<String> increase
getter/setter pair

A parser that increases the current indentation and returns it, but does not consume anything.

Implementation

late Parser<String> increase = parser
    .plusString(message)
    .where((value) => value.length > current.length)
    .map((value) {
  stack.add(current);
  return current = value;
}, hasSideEffects: true).and();