Add support for highlighting multiple spans at once (dart-lang/source_span#49)

This makes it possible for applications to provide additional context
in their span-based messages. Like the existing highlight format, it's
heavily inspired by [Rust's error messages][].

[Rust's error messages]: https://blog.rust-lang.org/images/2016-08-09-Errors/new_errors.png

For maximal backwards-compatibility, this doesn't change the
formatting of any single-span highlights and it uses extension methods
rather than adding new methods to existing classes.
11 files changed
tree: 52d42083645ad065008b3de9b5a87510723e8468
  1. pkgs/