Skip to main content

escape_snippet_text

Function escape_snippet_text 

Source
pub fn escape_snippet_text(text: &str) -> String
Expand description

text as snippet text that stands for itself: a backslash in front of every $, } and \\, so a name taken from the document cannot open a tab stop of its own when it is put inside a snippet.