Skip to main content

is_collapsible_trivia

Function is_collapsible_trivia 

Source
pub fn is_collapsible_trivia(kind: SyntaxKind) -> bool
Expand description

Whitespace and newlines are the only trivia the formatter rewrites; comments are preserved verbatim and so are not collapsible. A shared shape predicate: the formatter’s gap normalization and the semantic layer’s expl3 statement segmentation both skip exactly this class.