quotesParser property

Parser<String> quotesParser
final

Parser for one or two apostrophes.

The body of a multiline literal string can contain up to two apostrophes since they do not form a valid delimiter.

mll-quotes = 1*2apostrophe

Implementation

static final Parser<String> quotesParser = char(TomlLiteralString.delimiter)
    .repeatLazy(
      string(delimiter).optional() & char(TomlLiteralString.delimiter).not(),
      1,
      2,
    )
    .join();