quotesParser property

Parser<String> quotesParser
final

Parser for one or two quotation marks.

The body of a multiline basic string can contain up to two double quotes since they do not form a valid delimiter. Additional double quotes have to be escaped.

mlb-quotes = 1*2quotation-mark

Implementation

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