compiler: Add Ability to Annotate Preprocessed Source

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-11 07:24:03 -04:00
parent a0c6b7730c
commit f0f7a660a6
7 changed files with 108 additions and 4 deletions
+14
View File
@@ -75,6 +75,20 @@ public struct FormatterPlain: Formattable {
}
public struct FormatterDelimited: Formattable {
let start: String
let end: String
public init(_ start: String, _ end: String) {
self.start = start
self.end = end
}
public func formatWithStyle(_ value: String, _ style: Style) -> String {
return self.start + value + self.end
}
}
public struct FormatterAnsi: Formattable {
public init() {}