singleLineStringLexicalToken method

Parser singleLineStringLexicalToken()

Implementation

Parser singleLineStringLexicalToken() =>
    char('"') &
        ref0(stringContentDoubleQuotedLexicalToken).star() &
        char('"') |
    char("'") &
        ref0(stringContentSingleQuotedLexicalToken).star() &
        char("'") |
    string('@"') & pattern('^"\n\r').star() & char('"') |
    string("@'") & pattern("^'\n\r").star() & char("'");