Fix parse diagnostics not working

This commit is contained in:
Sam Vervaeck 2022-09-08 23:35:07 +02:00
parent 088bdc94c2
commit ebf600bdfc

View file

@ -136,7 +136,7 @@ export class UnexpectedTokenDiagnostic {
public format(): string {
return ANSI_FG_RED + ANSI_BOLD + 'fatal: ' + ANSI_RESET
+ `expected ${describeExpected(this.expected)} but got ${describeActual(this.actual)}\n\n`
+ printNode(this.actual) + '\n';
+ printExcerpt(this.file, this.actual.getRange()) + '\n';
}
}