formatter

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package formatter renders a parsed Runefile back into its canonical source form. It is the single formatter shared by the CLI (`rune --fmt`) and the language server's textDocument/formatting (spec FR-020); neither shells out.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(f *ast.File) string

Format rewrites a parsed Runefile in canonical form: settings, then assignments, then imports/mods, then tasks in declaration order, bodies indented four spaces. It is the single canonical formatter shared by the CLI (`rune --fmt`) and the language server's textDocument/formatting (spec FR-020).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL