Crate stylua_lib
source ·Macros
Structs
The configuration to use when formatting.
An optional formatting range.
If provided, only content within these boundaries (inclusive) will be formatted.
Both boundaries are optional, and are given as byte offsets from the beginning of the file.
Enums
When to use call parentheses
What mode to use if we want to collapse simple functions / guard statements
A formatting error
The type of indents to use when indenting
The type of line endings to use at the end of a line
The type of verification to perform to validate that the output AST is still correct.
The style of quotes to use within string literals
Functions
Formats given
Ast
Formats given Lua code