Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes an off-by-one bug in the error formatter. Namely, if a regex ends with a literal `\n` *and* an error is reported that contains a span at the end of the regex, then this trips a bug in the formatter because its line count ends up being wrong. We fix this by tweaking the line count. The actual error message is still a little wonky, but given the literal `\n`, it's hard not to make it wonky. Fixes #464
- Loading branch information