Releases: trishume/syntect
More Robust Parsing
- Parsing now abandons a regex after reaching a recursion depth limit instead of taking forever
- Loop detection better matches Sublime Text
- Parsing is faster!
- Dependency upgrades
- Other minor tweaks
Thanks to @robinst for the headline features of this release!
Breaking Changes and New Stuff
Breaking changes:
- The
static-onig
feature was removed, static linking is now the default - Font styles and color constants now use associated consts because of bitflags upgrade
- SyntaxDefinition::load_from_str now has an extra parameter
Other notable changes:
- Support for new
embed
syntax #124 - Updates to many dependencies
- Updated dumps
- More compact HTML output
New InspiredGithub and libonig
v1.8.2 Bump version to 1.8.2
Update bitflags & packages
This release changes how the constants for FontStyle
and Color
, relying on the new associated consts feature in Rust 1.20. The old constants are still available but are deprecated and will be removed in v2.0.
Packages were also updated to newer versions.
Enable comparison of parse states
Fixes comparisons of parse states so they are fast and don't recurse infinitely. Thanks @raphlinus
Bug fixes and package updates
- Fixes #101, which caused some syntaxes like PHP to behave incorrectly.
- Updates Packages with new syntax versions
- Adds new handy flags to the
syncat
example
Pure Rust dump loading/creation features
v1.7.0 Bump to v1.7.0
Helper methods and more theme attributes
v1.6.0 Bumk to 1.6.0
Highlighting stacks
Small release, adds a convenience method for highlighting an entire stack, and derives some more things on Scope
.
Serde and optional parsing
This release switches the dump format from rustc-serialize to Serde, anyone using custom dumps will have to update them.
It also makes the parsing part of the library optional behind a feature flag, anyone not using the default feature flags probably will want to add the parsing
flag.