STRING_LITERAL_LONG_SINGLE_QUOTE method

Parser STRING_LITERAL_LONG_SINGLE_QUOTE()

Implementation

Parser STRING_LITERAL_LONG_SINGLE_QUOTE() =>
    pattern('\'').times(3) &
    ((pattern('\'') | pattern('\'').times(2)).repeat(0, 1) &
            (pattern('^\'\\') | ref0(ECHAR) | ref0(UCHAR)))
        .star() &
    pattern('\'').times(3);