Skip to main content

close_delimiters

Function close_delimiters 

Source
fn close_delimiters(text: &str) -> Option<String>
Expand description

Append whatever closing delimiters the body is missing.

Returns None when the text ends inside a string, when a delimiter is mismatched, or when nesting exceeds MAX_NESTING — see the module doc on why an unterminated string is left alone.