Documentation
¶
Overview ¶
Package format formats Kukel source (kukel fmt): it re-indents lines and normalizes the spaces between tokens. Line breaks and comments stay where they are, and at most one blank line in a row is kept. A statement that starts with if, while, do, for, switch, try or with gets a blank line before it (breathing space), unless it starts a block or follows a label (see breathe).
The result is checked: read again, it must give the same tokens and comments as the input, or Source refuses it (so formatting can never change a program).
Index ¶
Constants ¶
View Source
const Indent = " "
Indent is one level of indentation.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.