Escape

object Escape

Base parsers for escape sequences.

class Object
trait Matchable
class Any
Escape.type

Value members

Concrete methods

def literal(value: String): CodeSpanParser

Parses a single literal escape. Example: $$.

Parses a single literal escape. Example: $$.

Concrete fields

Parses a simple backslash character escape. Does except any character after the backslash, if you want to be strict and apply the specific rules about which characters are valid escapes you need to create a custom parser.

Parses a simple backslash character escape. Does except any character after the backslash, if you want to be strict and apply the specific rules about which characters are valid escapes you need to create a custom parser.

Parses a hexadecimal character escape. It must start with a backslash, followed by the letter x and exactly two hex digits, e.g. \\xf2.

Parses a hexadecimal character escape. It must start with a backslash, followed by the letter x and exactly two hex digits, e.g. \\xf2.

Parses a octal character escape. It must start with a backslash, followed by one to three octal digits, e.g. \\207.

Parses a octal character escape. It must start with a backslash, followed by one to three octal digits, e.g. \\207.

Parses a unicode character escape. It must start with a backslash, followed by the letter u and exactly four hex digits, e.g. \\u20ff.

Parses a unicode character escape. It must start with a backslash, followed by the letter u and exactly four hex digits, e.g. \\u20ff.