lex_ml_literal_string

Function lex_ml_literal_string 

Source
fn lex_ml_literal_string(stream: &mut LocatingSlice<&'_ str>) -> Token
Expand description

Process multi-line literal string

;; Multiline Literal String

ml-literal-string = ml-literal-string-delim [ newline ] ml-literal-body
                    ml-literal-string-delim
ml-literal-string-delim = 3apostrophe
ml-literal-body = *mll-content *( mll-quotes 1*mll-content ) [ mll-quotes ]

mll-content = mll-char / newline
mll-char = %x09 / %x20-26 / %x28-7E / non-ascii
mll-quotes = 1*2apostrophe

ยงSafety

  • stream must be UTF-8
  • stream.starts_with(ML_LITERAL_STRING_DELIM)