Skip to main content

parse_inline_directives

Function parse_inline_directives 

Source
pub fn parse_inline_directives(line: &str) -> Vec<InlineDirective<'_>>
Expand description

Parse all inline configuration directives from a line, in left-to-right order.

Each directive is a typed InlineDirective with its kind and rule list. Disambiguation between overlapping prefixes (e.g., disable vs disable-line) is handled by matching the longest keyword first — no ad-hoc guards needed.