Documentation
¶
Overview ¶
Package pawnfmt exposes Pawn source formatting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ParseMode ¶ added in v1.3.3
type ParseMode string
ParseMode controls how formatting handles parser errors.
type RangeResult ¶ added in v1.3.0
RangeResult contains formatted source and the replaced range.
func FormatRange ¶ added in v1.3.0
func FormatRange(source []byte, start, end int, opts Options) (RangeResult, error)
FormatRange formats the top-level syntax unit containing the range.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
corpus-report
command
Command corpus-report runs the formatter against the real-world corpus and reports results.
|
Command corpus-report runs the formatter against the real-world corpus and reports results. |
|
pawnfmt
command
Command pawnfmt is a Pawn (SA-MP/open.mp) source code formatter.
|
Command pawnfmt is a Pawn (SA-MP/open.mp) source code formatter. |
|
internal
|
|
|
bench
Package bench generates synthetic Pawn sources for benchmarking.
|
Package bench generates synthetic Pawn sources for benchmarking. |
|
check
Package check runs formatter correctness checks used by the corpus report.
|
Package check runs formatter correctness checks used by the corpus report. |
|
config
Package config defines pawnfmt's configuration schema, defaults, and loading.
|
Package config defines pawnfmt's configuration schema, defaults, and loading. |
|
doc
Package doc implements a Wadler/Prettier-style pretty-printing IR.
|
Package doc implements a Wadler/Prettier-style pretty-printing IR. |
|
format
Package format renders a parsed Pawn source file to formatted output.
|
Package format renders a parsed Pawn source file to formatted output. |
|
printer
Package printer renders a doc.
|
Package printer renders a doc. |
|
trivia
Package trivia scans source lines for blank/comment/directive/disabled-region info.
|
Package trivia scans source lines for blank/comment/directive/disabled-region info. |
Click to show internal directories.
Click to hide internal directories.