Skip to content

Fix iterator macro indentation bug#42

Open
BlakeASmith wants to merge 3 commits intomainfrom
cursor/CLI-34-fix-iterator-macro-indentation-bug-8930
Open

Fix iterator macro indentation bug#42
BlakeASmith wants to merge 3 commits intomainfrom
cursor/CLI-34-fix-iterator-macro-indentation-bug-8930

Conversation

@BlakeASmith
Copy link
Contributor

Fix iterator macros to correctly include all lines of an indented block within the generated loop.

The issue (CLI-34) was that iterator macros applied to indented blocks only included the first line of the block in the loop, leaving subsequent indented lines outside. This was due to the macro parser's find_target_for_macro() only identifying single lines and _apply_single_transformation() only replacing the first line. The fix extends the parser to detect and process multi-line indented blocks, ensuring all intended content is correctly looped.


Linear Issue: CLI-34

Open in Cursor Open in Web

Co-authored-by: blakeinvictoria <blakeinvictoria@gmail.com>
@cursor
Copy link

cursor bot commented Aug 27, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

…rrectly

Co-authored-by: blakeinvictoria <blakeinvictoria@gmail.com>
@BlakeASmith BlakeASmith marked this pull request as ready for review August 28, 2025 03:09
Co-authored-by: blakeinvictoria <blakeinvictoria@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants