Skip to main content

Crate perl_lsp_perltidy

Crate perl_lsp_perltidy 

Source
Expand description

Native-first Perl formatting with optional perltidy compatibility.

This crate isolates Perl formatting concerns behind a small API so the broader tooling crate can focus on composition rather than formatter implementation details. The default LSP formatter uses the Rust-native NativeFormatter; PerlTidyFormatter remains an explicit subprocess-backed compatibility adapter for projects that still require exact perltidy behavior.

Re-exports§

pub use native::BracePlacement;
pub use native::ElsePlacement;
pub use native::FinalNewline;
pub use native::FormatConfig;
pub use native::FormatDiagnostic;
pub use native::FormatDiagnosticSeverity;
pub use native::FormatDoc;
pub use native::FormatResult;
pub use native::FormatterMode;
pub use native::KeywordSpacing;
pub use native::NativeFormatter;
pub use native::PerlFormatter;
pub use native::TextEdit;
pub use native::TextPosition;
pub use native::TextRange;
pub use native::TrailingComma;

Modules§

native
Native formatter contract types.

Structs§

BuiltInFormatter
Built-in formatter for when perltidy is unavailable.
FormatSuggestion
A formatting suggestion.
PerlTidyConfig
Configuration for perltidy.
PerlTidyFormatter
Perltidy formatter.