sageserpent-open / kineticMerge

Merge a heavily refactored codebase and stay sane.
MIT License
9 stars 1 forks source link

Adjust indentation when migrating edits or insertions. #41

Open sageserpent-open opened 1 month ago

sageserpent-open commented 1 month ago

This is to support Python, F#, Scala 3 etc where indentation is important.

We want migrated code to compile correctly in its new home, so it should indent consistently with the surrounding code.

This may come for free when migrating edits - need a test case to check this.

Insertions need to have their relative indentation wrt their anchors determined, so that they can be aligned with the anchors' destinations.

sageserpent-open commented 1 month ago

This should follow #9.