Expand description
SyntaxKind — the kinds of CST tokens and nodes — and the rowan Language
binding for badness’s LaTeX surface CST.
Enums§
- Badness
Lang - The rowan language marker for badness’s CST.
- Syntax
Kind - Kinds of tokens (terminals, from the lexer) and nodes (composites, from the parser) in the CST.
Functions§
- is_
collapsible_ trivia - 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.
- is_
param_ digit - Whether a
WORDtoken is a single TeX parameter digit (1..=9) — the shape that follows#in a parameter reference. Reads only the token text. - is_
trivia - Trivia ignored by syntax readers: collapsible whitespace plus comments.