DefaultEscapedTextParsers

Default implementation for parsing escape sequences.

class Object
trait Matchable
class Any

Value members

Concrete methods

Adds support for escape sequences to the specified text parser.

Adds support for escape sequences to the specified text parser.

Value parameters:
p

the parser to add support for escape sequences to

Returns:

a parser for a text span that supports escape sequences

def escapedUntil(char: Char, chars: Char*): Parser[String]

Parses a span of text until one of the specified characters is seen (unless it is escaped), while also processing escaped characters, but no other nested spans. The final character is not included in the result.

Parses a span of text until one of the specified characters is seen (unless it is escaped), while also processing escaped characters, but no other nested spans. The final character is not included in the result.

Concrete fields

lazy val escapeSequence: PrefixedParser[String]
lazy val escapedChar: Parser[String]

Parses a single escape character. In the default implementation any character can be escaped. Sub-traits may override this parser to restrict the number of escapable characters.

Parses a single escape character. In the default implementation any character can be escaped. Sub-traits may override this parser to restrict the number of escapable characters.