|
1 | | -//! A fancy compiler diagnostics crate. |
2 | | -//! |
3 | | -//! # Example |
4 | | -//! |
5 | | -//! <img src="https://raw.githubusercontent.com/zesterer/ariadne/main/misc/example.png" alt="Multi-line spans"/> |
6 | | -//! |
7 | | -//! # Features |
8 | | -//! |
9 | | -//! - Inline and multi-line labels capable of handling arbitrary configurations of spans |
10 | | -//! - Multi-file errors |
11 | | -//! - Generic across custom spans and file caches |
12 | | -//! - A choice of character sets to ensure compatibility |
13 | | -//! - Coloured labels & highlighting with 256-color support (thanks to [`yansi`](https://github.com/SergioBenitez/yansi)) |
14 | | -//! - Label priority and ordering |
15 | | -//! - Compact mode for smaller diagnostics |
16 | | -//! - Correct handling of variable-width characters such as tabs |
17 | | -//! - A plethora of other options (tab width, label attach points, underlines, etc.) |
18 | | -//! |
19 | | -//! ``` |
20 | | -//! use ariadne::{Report, ReportKind, Label, Source}; |
21 | | -//! |
22 | | -//! Report::build(ReportKind::Error, (), 34) |
23 | | -//! .with_message("Incompatible types") |
24 | | -//! .with_label(Label::new(32..33).with_message("This is of type Nat")) |
25 | | -//! .with_label(Label::new(42..45).with_message("This is of type Str")) |
26 | | -//! .finish() |
27 | | -//! .print(Source::from(include_str!("../examples/sample.tao"))) |
28 | | -//! .unwrap(); |
29 | | -//! |
30 | | -
|
| 1 | +#![doc = include_str!("../README.md")] |
31 | 2 | #![deny(missing_docs)] |
32 | 3 |
|
33 | 4 | mod source; |
@@ -299,8 +270,6 @@ pub enum CharSet { |
299 | 270 | Unicode, |
300 | 271 | /// ASCII-only characters. |
301 | 272 | Ascii, |
302 | | - /// Extended ASCII characters. |
303 | | - ExtendedAscii, |
304 | 273 | } |
305 | 274 |
|
306 | 275 | /// A type used to configure a report |
|
0 commit comments