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
feat(ast-engine): support TAB indentation parsing (#100)
* feat(ast-engine): support TAB indentation parsing
* Added `get_tab` utility function for parsing tab characters from content.
* Refactored `get_indent_at_offset` to handle tabs by returning `is_tab` along with indent offset.
* Handled the stripping and insertion of mixed-tabs vs space indent characters properly inside `remove_indent` and `indent_lines_impl`.
* Plumbed the `is_tab` boolean down through `formatted_slice` and `indent_lines`.
* Updated tests in `indent.rs` to exercise proper TAB character extraction and re-indentation rules.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* feat(ast-engine): fix CI failure for rustfmt
Fixed formatting issue in `crates/ast-engine/src/replacer/indent.rs` and `crates/ast-engine/src/replacer/template.rs` that was flagged by `cargo fmt --all -- --config-path ./rustfmt.toml --check` in the CI pipeline.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix(ast-engine): fix clippy warnings in indent.rs
Fixed missing backticks in doc comments and replaced slice allocations (`&[var.clone()]`) with `std::slice::from_ref` inside `crates/ast-engine/src/replacer/indent.rs` to satisfy clippy linters.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix: fix clippy errors in flow and language crates
Fixed an unused variable warning in `crates/language/src/lib.rs` and collapsed an if-let statement in `crates/flow/src/incremental/analyzer.rs` as mandated by clippy.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix: fix clippy errors in flow and language crates
Fixed an unused variable warning in `crates/language/src/lib.rs` and collapsed an if-let statement in `crates/flow/src/incremental/analyzer.rs` as mandated by clippy.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix(ast-engine): correct TAB indentation detection and re-indentation behavior (#101)
* Initial plan
* fix(ast-engine): address review comments on TAB indentation support
- template.rs:119: use *indent/*is_tab (Copy types) instead of .to_owned()
- indent.rs: fix get_indent_at_offset_with_tab to only set is_tab=true
for pure-tab indentation; mixed indentation falls back to spaces
- indent.rs:331: use get_indent_at_offset_with_tab in test_deindent
for accurate is_tab detection instead of source.contains('\t')
- indent.rs:104-106: update doc comments to reflect tab/mixed support
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix(ast-engine): use byte indices in test_deindent helper
Replace .chars().count() with str::trim_start/trim_end length
arithmetic so start/end are byte offsets throughout, making the
helper correct for non-ASCII / multi-byte UTF-8 input.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix: fix clippy errors in flow and language crates
Fixed an unused variable warning in `crates/language/src/lib.rs` and collapsed an if-let statement in `crates/flow/src/incremental/analyzer.rs` as mandated by clippy.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix: fix clippy errors in flow and language crates
Fixed an unused variable warning in `crates/language/src/lib.rs` and collapsed an if-let statement in `crates/flow/src/incremental/analyzer.rs` as mandated by clippy.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
---------
Signed-off-by: Adam Poulemanos <89049923+bashandbone@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
0 commit comments