(file: Path, diagnostic: Diagnostic)
| 240 | |
| 241 | |
| 242 | def show_diagnostic(file: Path, diagnostic: Diagnostic) -> None: |
| 243 | print( |
| 244 | f"{with_blue(str(file))}:{with_cyan(str(diagnostic.start))}: " |
| 245 | f"{with_red('error:')} {diagnostic.message}" |
| 246 | ) |
| 247 | |
| 248 | |
| 249 | def main(): |