Module indent

Source
Expand description

Utilities for indenting source lines

Structs§

Indent
Information on the indentation state of a line

Functions§

apply_indent
Apply the given indentation to a line
calculate_indent
Calculates the indent for line based on its contents. This functions saves the calculated Indent, which might be negative, to the given State, and then ensures that the returned Indent is non-negative.