You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upstream added syntax-aware tree-sitter splitting for Elm (.elm files) via tree-sitter-elm 5.9.0. The PR wires up the parser to RecursiveSplitter, adds detect_code_language assertion for .elm extension, and adds round-trip tests. This follows the same pattern as the already-tracked Svelte/Vue/Julia additions (issue #165).
rust/ops_text/ — tree-sitter language wiring and splitter implementation
Maps to recoco: crates/recoco-splitters/
Recoco Considerations
Feature gate: Must be gated under function-split (or an Elm-specific sub-gate if granularity is desired) consistent with recoco's feature-gating architecture.
Dependency: tree-sitter-elm 5.9.0 targets tree-sitter ^0.25.10. Verify recoco's pinned tree-sitter version is compatible before adding the dep.
No Python code to port — the upstream change is entirely in rust/ops_text/.
Straightforward adoption. Add tree-sitter-elm to crates/recoco-splitters/Cargo.toml (feature-gated), register the language in the splitter language table, and add the same tests (detect_code_language + RecursiveSplitter round-trip) as the upstream PR. Should take under an hour once the Svelte/Vue/Julia work in #165 is landed.
Upstream Change Summary
Type: new-feature
Difficulty: Easy
Recommendation: Adopt
Upstream added syntax-aware tree-sitter splitting for Elm (
.elmfiles) viatree-sitter-elm 5.9.0. The PR wires up the parser toRecursiveSplitter, addsdetect_code_languageassertion for.elmextension, and adds round-trip tests. This follows the same pattern as the already-tracked Svelte/Vue/Julia additions (issue #165).Upstream References
Relevant Upstream Files / Areas
rust/ops_text/— tree-sitter language wiring and splitter implementationMaps to recoco:
crates/recoco-splitters/Recoco Considerations
function-split(or an Elm-specific sub-gate if granularity is desired) consistent with recoco's feature-gating architecture.tree-sitter-elm 5.9.0targets tree-sitter^0.25.10. Verify recoco's pinned tree-sitter version is compatible before adding the dep.rust/ops_text/.Integration Notes
Straightforward adoption. Add
tree-sitter-elmtocrates/recoco-splitters/Cargo.toml(feature-gated), register the language in the splitter language table, and add the same tests (detect_code_language + RecursiveSplitter round-trip) as the upstream PR. Should take under an hour once the Svelte/Vue/Julia work in #165 is landed.