Class CommentFormatter
java.lang.Object
org.ek9lang.compiler.formatter.CommentFormatter
Pass 4 of the EK9 source formatter: Comment Interior Re-indentation.
After Passes 1-3, multi-line comments have a misalignment issue: the opening
line (<?-, <!-, <!--) is correctly indented by Pass 1,
but interior lines (content + closing marker) are preserved from the original source.
This pass computes the delta between the opening and closing line indents and applies
that delta to all interior lines.
The algorithm is idempotent: after first application, closing matches opening (delta = 0), so a second run produces no changes.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CommentFormatter
CommentFormatter()
-
-
Method Details
-
format
-