[−][src]Function docugen::parser::string_literal
pub fn string_literal() -> Parser<u8, Partial>
A StringLiteral
parser combinator is responsible for parsing the following
fragment:
<StringLiteral> ::= <StringLiteralCharacter>+
<StringLiteralCharacter> ::= <EscapedCharacter>
| <UnescapedCharacter>
<EscapedCharacter> ::= '\\{'
| '\\}'
| '\\'
| '\\t'
| '\\b'
| '\\f'
<UnescapedCharacter> ::= [^\\{}]