Skip to main content

parse_directive

Function parse_directive 

Source
pub fn parse_directive(comment: &str) -> Option<Directive>
Expand description

Read a directive out of a comment token’s text. Returns None for an ordinary comment and for an unrecognized verb.

Leading %s are all stripped, so %%% badness-format off works; the verb must be the first word after the family name, separated by whitespace.