API Reference SurfaceFormatter v0.2.2
Modules
Functions for formatting Surface code snippets.
A phase implementing a single "rule" for formatting code. These work as middleware
between Surface.Compiler.Parser.parse/1
and Surface.Formatter.Render.node/2
to modify node lists before they are rendered.
Add a newline after all of the nodes
Adds indentation nodes (:indent
and :indent_one_less
) where appropriate.
Standardizes usage of newlines.
In a variety of scenarios, converts :space nodes to :newline nodes.
Inspects all text nodes and "tags" leading and trailing whitespace
by converting it into a :space
atom or a list of :newline
atoms.
Functions for rendering formatter nodes
Mix Tasks
Formats Surface ~H
sigils and .sface
files in the given files and patterns.