silicon
silicon copied to clipboard
chore(deps): bump syntect from 4.5.0 to 5.0.0
Bumps syntect from 4.5.0 to 5.0.0.
Release notes
Sourced from syntect's releases.
Breaking changes for improved startup time and error handling!
Thanks to
@Enselic
for basically all the work to make this release happen!Breaking changes
- Lazy-load syntaxes to significantly improve startup time. This changes the binary format of syntax dump files.
- Remove
ContextId::new()
from public API to support lazy-loading of syntaxes- Rename
HighlightLines::highlight()
toHighlightLines::highlight_line()
to make it clear that the function takes one line at a time- Make
plist
dependency (used for loading themes) optional via newplist-load
feature- Remove obsolete
dump-load-rs
anddump-create-rs
features that has been identical todump-load
anddump-create
for two years- Remove deprecated items
ThemeSettings::highlight_foreground
,ThemeSettings::selection_background
,ClassedHTMLGenerator::new
,ClassedHTMLGenerator::parse_html_for_line
,html::css_for_theme
,html::tokens_to_classed_html
andhtml::tokens_to_classed_spans
- Mark all error enums as
#[non_exhaustive]
- These functions have been changed to return a
Result
to allow propagation of errors:
html::ClassedHTMLGenerator::parse_html_for_line_which_includes_newline
html::append_highlighted_html_for_styled_line
html::css_for_theme_with_class_style
html::highlighted_html_for_string
html::line_tokens_to_classed_spans
html::styled_line_to_highlighted_html
parsing::ParseState::parse_line
parsing::ScopeStack::apply
parsing::ScopeStack::apply_with_hook
parsing::syntax_definition::Context::match_at
parsing::syntax_definition::ContextReference::id
parsing::syntax_definition::ContextReference::resolve
Other changes
- Fall back to
Plain Text
if a referenced syntax is missing- Add support for
hidden_file_extensions
key in syntaxes.- Implement
Error
andDisplay
for all error enums by usingthiserror
- Replace
lazycell
withonce_cell
to fix crash on lazy initialization- Add
ScopeRangeIterator
- Add CI check for Minimum Supported Rust Version. This is currently Rust 1.53.
- Make looking up a syntax by extension use case-insensitive comparison
- Make
from_dump_file()
~15% faster- Blend alpha value on converting colors to ANSI color sequences
- Fix sample code in documentation to avoid double newlines
- Fix lots of build warnings and lints
- Add Criterion benchmarks for a whole syntect pipeline and for
from_dump_file()
Patch of v4.7.0 without the semver violations that broke things
See the release notes for v4.7.0, this release removes a new Cargo feature which constituted a semver violation:
- Remove 'plist-load' feature again due to semver violation. #403
Much faster startup through lazy-loading, and much more!
Big release this time thanks to tons of fantastic contributions from
@Enselic
, this release was basically all him! The headline feature is much faster startup time due to lazy-loading at the syntax level.
- Lazy-load syntaxes to significantly improve startup time
... (truncated)
Changelog
Sourced from syntect's changelog.
Version 5.0.0 (2022-05-03)
Breaking changes
- Lazy-load syntaxes to significantly improve startup time. This changes the binary format of syntax dump files.
- Remove
ContextId::new()
from public API to support lazy-loading of syntaxes- Rename
HighlightLines::highlight()
toHighlightLines::highlight_line()
to make it clear that the function takes one line at a time- Make
plist
dependency (used for loading themes) optional via newplist-load
feature- Remove obsolete
dump-load-rs
anddump-create-rs
features that has been identical todump-load
anddump-create
for two years- Remove deprecated items
ThemeSettings::highlight_foreground
,ThemeSettings::selection_background
,ClassedHTMLGenerator::new
,ClassedHTMLGenerator::parse_html_for_line
,html::css_for_theme
,html::tokens_to_classed_html
andhtml::tokens_to_classed_spans
- Mark all error enums as
#[non_exhaustive]
- These functions have been changed to return a
Result
to allow propagation of errors:
html::ClassedHTMLGenerator::parse_html_for_line_which_includes_newline
html::append_highlighted_html_for_styled_line
html::css_for_theme_with_class_style
html::highlighted_html_for_string
html::line_tokens_to_classed_spans
html::styled_line_to_highlighted_html
parsing::ParseState::parse_line
parsing::ScopeStack::apply
parsing::ScopeStack::apply_with_hook
parsing::syntax_definition::Context::match_at
parsing::syntax_definition::ContextReference::id
parsing::syntax_definition::ContextReference::resolve
Other changes
- Fall back to
Plain Text
if a referenced syntax is missing- Add support for
hidden_file_extensions
key in syntaxes.- Implement
Error
andDisplay
for all error enums by usingthiserror
- Replace
lazycell
withonce_cell
to fix crash on lazy initialization- Add
ScopeRangeIterator
- Add CI check for Minimum Supported Rust Version. This is currently Rust 1.53.
- Make looking up a syntax by extension use case-insensitive comparison
- Make
from_dump_file()
~15% faster- Blend alpha value on converting colors to ANSI color sequences
- Fix sample code in documentation to avoid double newlines
- Fix lots of build warnings and lints
- Add Criterion benchmarks for a whole syntect pipeline and for
from_dump_file()
Version 4.7.1 (2022-01-03)
This version was yanked from crates.io due to a semver violation issue.
Version 4.7.0 (2021-12-25)
This version was yanked from crates.io due to a semver violation issue.
Version 4.6.0 (2021-08-01)
... (truncated)
Commits
e8c1f31
Release date for 5.0.01184978
Merge pull request #409 from Enselic/prepare-for-5.0.0a47dbdf
Merge pull request #432 from Enselic/dont-panice8535c1
CHANGELOG.md: Update to include PR #432dcd439e
CHANGELOG.md: Update with latest changes on masterc7ee51e
Merge remote-tracking branch 'origin/master' into prepare-for-5.0.046882e1
Replace direct panics with Errors6b211f9
Merge pull request #419 from sourcegraph/vg/upstream/hidden-file-extensionse54eef3
Add support for hidden_file_extensions key.ce1ba5b
Merge pull request #426 from Enselic/parse-and-highlight-line-with-result- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)