Skip to content

Commit d683f91

Browse files
authored
Merge pull request #601 from CosmicHorrorDev/prep-5.3.0
Prepare for a 5.3.0 release
2 parents c0472fb + ca7de0f commit d683f91

File tree

5 files changed

+93
-37
lines changed

5 files changed

+93
-37
lines changed

CHANGELOG.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,80 @@
11
# Changelog
22

3+
## [Version 5.3.0](https://github.com/trishume/syntect/compare/v5.2.0...v5.3.0) (UNRELEASED)
4+
5+
### Improvements
6+
7+
- Add `HighlightLines::from_state()` constructor [#569]
8+
9+
### Fixes
10+
11+
- Ignore UTF-8 BOM on syntax detection [#530]
12+
- Escape CSS class names [#539]
13+
- Avoid an infinite loop when a syntax definition continually pushes contexts without consuming any input [#597]
14+
- Return an error when a syntax definition contains an unescaped trailing backslash instead of panicking at runtime [#548]
15+
16+
### Dependencies
17+
18+
- Replace `bitflags` with a manual implementation [#590]
19+
- Update `public-api` to work with new lockfile versions [#591]
20+
- Update `thiserror` to v2 [#594]
21+
- Update `fancy-regex` to `0.16.2` [#596]
22+
- Bump `rust_onig` version to avoid build failures on newer GCC versions [#584]
23+
24+
## Docs
25+
26+
- Add various projects to the README showcase:
27+
- `BugStalker` [#533]
28+
- `Yazi` [#543]
29+
- `bingus-blog` [#534]
30+
- `CodeSnap.nvim` [#553]
31+
- `television` [#571]
32+
- `code-to-pdf` [#579]
33+
- `Comrak` [#581]
34+
- Deprecate `syntect::parsing::SCOPE_REPO` for removal [#580]
35+
36+
### Other
37+
38+
- Format with `rustfmt` [#528]
39+
- Bump nightly toolchain version to fix a test build failure [#542]
40+
- Remove unused import in yaml load test [#531]
41+
- Use `BufWriter` to improve unoptimized serialization perf [#554]
42+
- Commit `Cargo.lock` to avoid flaky CI issues [#567]
43+
- Switch from `expect-test` to `insta` [#568] then later to `public-api`'s `snapshot-testing` support [#595]
44+
- Speed up unittest runtime [#577] [#598]
45+
- Fix new clippy lints [#585]
46+
- Use `cargo-hack` to check many different features in CI [#593]
47+
48+
[#528]: https://github.com/trishume/syntect/pull/528
49+
[#530]: https://github.com/trishume/syntect/pull/530
50+
[#531]: https://github.com/trishume/syntect/pull/531
51+
[#533]: https://github.com/trishume/syntect/pull/533
52+
[#534]: https://github.com/trishume/syntect/pull/534
53+
[#539]: https://github.com/trishume/syntect/pull/539
54+
[#542]: https://github.com/trishume/syntect/pull/542
55+
[#543]: https://github.com/trishume/syntect/pull/543
56+
[#548]: https://github.com/trishume/syntect/pull/548
57+
[#553]: https://github.com/trishume/syntect/pull/553
58+
[#554]: https://github.com/trishume/syntect/pull/554
59+
[#567]: https://github.com/trishume/syntect/pull/567
60+
[#568]: https://github.com/trishume/syntect/pull/568
61+
[#569]: https://github.com/trishume/syntect/pull/569
62+
[#571]: https://github.com/trishume/syntect/pull/571
63+
[#577]: https://github.com/trishume/syntect/pull/577
64+
[#579]: https://github.com/trishume/syntect/pull/579
65+
[#580]: https://github.com/trishume/syntect/pull/580
66+
[#581]: https://github.com/trishume/syntect/pull/581
67+
[#584]: https://github.com/trishume/syntect/pull/584
68+
[#585]: https://github.com/trishume/syntect/pull/585
69+
[#590]: https://github.com/trishume/syntect/pull/590
70+
[#591]: https://github.com/trishume/syntect/pull/591
71+
[#593]: https://github.com/trishume/syntect/pull/593
72+
[#594]: https://github.com/trishume/syntect/pull/594
73+
[#595]: https://github.com/trishume/syntect/pull/595
74+
[#596]: https://github.com/trishume/syntect/pull/596
75+
[#597]: https://github.com/trishume/syntect/pull/597
76+
[#598]: https://github.com/trishume/syntect/pull/598
77+
378
## [Version 5.2.0](https://github.com/trishume/syntect/compare/v5.1.0...v5.2.0) (2024-02-07)
479

580
### Improvements

Cargo.lock

Lines changed: 11 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exclude = [
2222
features = ["metadata"]
2323

2424
[dependencies]
25-
yaml-rust = { package = "yaml-rust2", version = "0.10.4", optional = true, default-features = false }
25+
yaml-rust = { version = "0.4.5", optional = true }
2626
onig = { version = "6.5.1", optional = true, default-features = false }
2727
fancy-regex = { version = "0.16.2", optional = true }
2828
walkdir = "2.0"

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ I consider this project mostly complete, I still maintain it and review PRs, but
2020

2121
## Getting Started
2222

23-
`syntect` is [available on crates.io](https://crates.io/crates/syntect). You can install it by adding this line to your `Cargo.toml`:
23+
`syntect` is [available on crates.io](https://crates.io/crates/syntect). You can add it to your `Cargo.toml` with the following command
2424

25-
```toml
26-
syntect = "5.0"
25+
```bash
26+
cargo add syntect
2727
```
2828

2929
After that take a look at the [documentation](https://docs.rs/syntect) and the [examples](https://github.com/trishume/syntect/tree/master/examples).

tests/snapshots/public-api.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,13 +892,13 @@ impl core::panic::unwind_safe::UnwindSafe for syntect::parsing::ParseScopeError
892892
pub syntect::parsing::ParseSyntaxError::BadFileRef
893893
pub syntect::parsing::ParseSyntaxError::EmptyFile
894894
pub syntect::parsing::ParseSyntaxError::InvalidScope(syntect::parsing::ParseScopeError)
895-
pub syntect::parsing::ParseSyntaxError::InvalidYaml(yaml_rust2::scanner::ScanError)
895+
pub syntect::parsing::ParseSyntaxError::InvalidYaml(yaml_rust::scanner::ScanError)
896896
pub syntect::parsing::ParseSyntaxError::MainMissing
897897
pub syntect::parsing::ParseSyntaxError::MissingMandatoryKey(&'static str)
898898
pub syntect::parsing::ParseSyntaxError::RegexCompileError(alloc::string::String, alloc::boxed::Box<(dyn core::error::Error + core::marker::Send + core::marker::Sync + 'static)>)
899899
pub syntect::parsing::ParseSyntaxError::TypeMismatch
900-
impl core::convert::From<yaml_rust2::scanner::ScanError> for syntect::parsing::ParseSyntaxError
901-
pub fn syntect::parsing::ParseSyntaxError::from(source: yaml_rust2::scanner::ScanError) -> Self
900+
impl core::convert::From<yaml_rust::scanner::ScanError> for syntect::parsing::ParseSyntaxError
901+
pub fn syntect::parsing::ParseSyntaxError::from(source: yaml_rust::scanner::ScanError) -> Self
902902
impl core::error::Error for syntect::parsing::ParseSyntaxError
903903
pub fn syntect::parsing::ParseSyntaxError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
904904
impl core::fmt::Debug for syntect::parsing::ParseSyntaxError

0 commit comments

Comments
 (0)