Skip to content

Commit 684a3cd

Browse files
authored
Merge pull request #116 from dylansturg/printing_printer_tokens_better
Print indent and index of control tokens to debug output.
2 parents 6cee7ce + bc8b7a1 commit 684a3cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SwiftFormatPrettyPrint/PrettyPrint.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ public class PrettyPrinter {
665665
print(verbatim.print(indent: debugIndent))
666666

667667
case .printerControl(let kind):
668-
print("[PRINTER CONTROL Kind: \(kind)]")
668+
printDebugIndent()
669+
print("[PRINTER CONTROL Kind: \(kind) Idx: \(idx)]")
669670
}
670671
}
671672

0 commit comments

Comments
 (0)