Thomas Mueller - 4 days ago
  • Description has changed:

Diff:

--- old
+++ new
@@ -35,7 +35,7 @@


 3. **The pass**, `AlignAssignBlocks`, called from the end of the main routine when the mode is `aamBlock`, just  before `if FSettings.WrapLines or FHasAligned then CheckWrapping;`:


-   ```pascal
+~~~
    procedure TCodeFormatterFormatter.AlignAssignBlocks;
    // Lines are runs of tokens between rtLineFeed tokens; a blank line is two
    // line feeds in a row.  For each line that STARTS with an assignment
@@ -69,7 +69,7 @@
        Lines.Free;
      end;
    end;
-   ```
+~~~

    `CollectAssignLines` walks `FTokens` once with a running `LineLen`, exactly like `CheckWrapping`.  A wrapped  right-hand side is a continuation line with no assignment of its own, so in this sketch it ends the block.
    Treating it as part of its statement (look back for the statement's `;`) would be a refinement.
  • Group: -->