Skip to content

Commit e3cb394

Browse files
committed
Removed ExtendedAscii character set
1 parent 150c3a2 commit e3cb394

File tree

4 files changed

+9
-62
lines changed

4 files changed

+9
-62
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ A fancy compiler diagnostics crate.
99

1010
## Example
1111

12-
# <img src="misc/example.png" alt="Ariadne supports arbitrary multi-line spans"/>
12+
<a href = "https://github.com/zesterer/ariadne/blob/main/examples/multiline.rs">
13+
<img src="https://raw.githubusercontent.com/zesterer/ariadne/main/misc/example.png" alt="Ariadne supports arbitrary multi-line spans"/>
14+
</a>
1315

14-
See [`examples/`](examples/) for more examples.
16+
See [`examples/`](https://github.com/zesterer/ariadne/tree/main/examples) for more examples.
1517

1618
## About
1719

@@ -44,10 +46,10 @@ you're thinking of using `ariadne` to process your compiler's output, why not tr
4446

4547
## Stability
4648

47-
The API (should) follow [semver](https://www.semver.org/). However, this does not apply to the layout of final error messages. Minor
48-
tweaks to the internal layout heuristics can often result in the exact format of error messages changing with labels
49-
moving slightly. If you experience a change in layout that you believe to be a regression (either the change is
50-
incorrect, or makes your diagnostics harder to read) then please open an issue.
49+
The API (should) follow [semver](https://www.semver.org/). However, this does not apply to the layout of final error
50+
messages. Minor tweaks to the internal layout heuristics can often result in the exact format of error messages changing
51+
with labels moving slightly. If you experience a change in layout that you believe to be a regression (either the change
52+
is incorrect, or makes your diagnostics harder to read) then please open an issue.
5153

5254
## Credit
5355

src/draw.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,29 +73,6 @@ impl Characters {
7373
underline: '^',
7474
}
7575
}
76-
77-
pub fn extended_ascii() -> Self {
78-
Self {
79-
hbar: '─',
80-
vbar: '│',
81-
xbar: '┼',
82-
vbar_break: '·',
83-
uarrow: '^',
84-
rarrow: '>',
85-
ltop: '┌',
86-
mtop: 'v',
87-
rtop: '┐',
88-
lbot: '└',
89-
mbot: '^',
90-
rbot: '┘',
91-
lbox: '[',
92-
rbox: ']',
93-
lcross: '├',
94-
rcross: '┤',
95-
underbar: '^',
96-
underline: '^',
97-
}
98-
}
9976
}
10077

10178
/// A trait used to add formatting attributes to displayable items.

src/lib.rs

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,4 @@
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")]
312
#![deny(missing_docs)]
323

334
mod source;
@@ -299,8 +270,6 @@ pub enum CharSet {
299270
Unicode,
300271
/// ASCII-only characters.
301272
Ascii,
302-
/// Extended ASCII characters.
303-
ExtendedAscii,
304273
}
305274

306275
/// A type used to configure a report

src/write.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ impl<S: Span> Report<S> {
7474
let draw = match self.config.char_set {
7575
CharSet::Unicode => draw::Characters::unicode(),
7676
CharSet::Ascii => draw::Characters::ascii(),
77-
CharSet::ExtendedAscii => draw::Characters::extended_ascii(),
7877
};
7978

8079
// --- Header ---

0 commit comments

Comments
 (0)