LINE_COMMENT top-level property

Parser<WhiteSpaceParser> LINE_COMMENT
final

Implementation

final Parser<WhiteSpaceParser> LINE_COMMENT =
    (string('//') & (string('\r') | string('\n')).neg().star())
        .flatten()
        .map((value) => WhiteSpaceParser(value));