pest icon indicating copy to clipboard operation
pest copied to clipboard

Add context around error

Open zacps opened this issue 3 years ago • 0 comments

Currently if pest fails on a blank line it will output something like this:

 --> 8:1
  |
8 | ␍␊
  | ^---
  |
  = expected literal, single_name_part, new_indent, or continue_indent

I would like it to output a configurable number of surrounding lines a la rustc error messages.

Is it possible to configure this somewhere?

zacps avatar Mar 08 '22 22:03 zacps