kdl-rs/src
Lily Ballard d7670e17b4
Add line, column to KdlError (#3)
* Add line and column numbers to KdlError

These numbers are calculated using our `newline` rule, as I'm not aware
of any standard for how to calculate line numbers in error messages.

The error retains the original `offset` field as well, but it's now
expressed in characters rather than bytes.

* Clean up error handling in parse_document()

We don't need to worry about `Incomplete` errors, the `complete` family
of parsers (which we're using) doesn't ever produce those. We can use
the `.finish()` function to unwrap the error instead, so we don't have
to worry about the underlying error types.
2020-12-16 17:43:13 -08:00
..
error.rs Add line, column to KdlError (#3) 2020-12-16 17:43:13 -08:00
lib.rs Add line, column to KdlError (#3) 2020-12-16 17:43:13 -08:00
node.rs switch to LF line endings 2020-12-14 00:07:14 -08:00
parser.rs Add line, column to KdlError (#3) 2020-12-16 17:43:13 -08:00