Fix parse diagnostics not working
This commit is contained in:
parent
088bdc94c2
commit
ebf600bdfc
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ export class UnexpectedTokenDiagnostic {
|
||||||
public format(): string {
|
public format(): string {
|
||||||
return ANSI_FG_RED + ANSI_BOLD + 'fatal: ' + ANSI_RESET
|
return ANSI_FG_RED + ANSI_BOLD + 'fatal: ' + ANSI_RESET
|
||||||
+ `expected ${describeExpected(this.expected)} but got ${describeActual(this.actual)}\n\n`
|
+ `expected ${describeExpected(this.expected)} but got ${describeActual(this.actual)}\n\n`
|
||||||
+ printNode(this.actual) + '\n';
|
+ printExcerpt(this.file, this.actual.getRange()) + '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue