2 releases
Uses new Rust 2024
| 0.12.2 | Apr 8, 2026 |
|---|---|
| 0.12.1 | Apr 1, 2026 |
#1131 in Text editors
Used in perl-lsp-providers
1.5MB
32K
SLoC
Folding range extraction for LSP textDocument/foldingRange
This module provides folding range extraction from the Perl AST, allowing editors to collapse/expand code sections.
perl-lsp-folding
Standalone SRP microcrate for extracting Perl folding ranges for LSP textDocument/foldingRange.
Responsibilities
- Traverse Perl parser AST nodes to produce foldable regions.
- Group adjacent import statements into
importsfolding regions. - Detect heredoc folding regions from lexer tokens.
License
Licensed under either of Apache License, Version 2.0 or MIT at your option.
Dependencies
~6–9.5MB
~100K SLoC