mirror of https://github.com/sharkdp/bat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
We can't keep `syntect::parsing::SyntaxReference` as part of the public API, because that might prevent us from bumping to syntect 6.0.0 without also bumping bat to v2.0.0, once we reach v1.0.0. So introduce a new stripped down struct `Syntax` and return that instead. Let it be fully owned to make the API simple. It is not going to be in a hot code path anyway. I have looked at all code of our 27 dependents but I can't find a single instance of this method being used, so this change should be safe for v1.0.0. |
2 years ago | |
---|---|---|
.. | ||
benchmarks | 2 years ago | |
examples | 2 years ago | |
mocked-pagers | 4 years ago | |
scripts | 2 years ago | |
snapshots | 2 years ago | |
syntax-tests | 2 years ago | |
tester | 2 years ago | |
utils | 4 years ago | |
.gitattributes | 3 years ago | |
assets.rs | 3 years ago | |
integration_tests.rs | 2 years ago | |
no_duplicate_extensions.rs | 3 years ago | |
snapshot_tests.rs | 2 years ago | |
test_pretty_printer.rs | 2 years ago |