missingTagEndParser function

Parser<String> missingTagEndParser(
  1. ParserContext parserContext
)

they are both present they would have been parsed already. It replaces the Tag end to a String e.g. containing: {{

Implementation

Parser<String> missingTagEndParser(ParserContext parserContext) =>
    (string(parserContext.engine.tagStart) &
            any().star() &
            string(parserContext.engine.tagEnd).not())
        .valueContextMap((values, context) {
          parserContext.errors.add(
            ParseError(
              message:
                  'Found tag start: ${parserContext.engine.tagStart}, '
                  'but it was not followed with a tag end: '
                  '${parserContext.engine.tagEnd}',
              position: context.toPositionString(),
            ),
          );
          return values.first;
        });