2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-16 21:25:56 +00:00
bat/tests
Martin Nordholts 49875d6ce7
Make bat::PrettyPrinter::syntaxes() iterate over new bat::Syntax struct (#2222)
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.
2022-09-03 12:33:38 +02:00
..
benchmarks Add new --style called header-filesize and display it by default (#1988) 2022-02-07 20:48:57 +01:00
examples Make --map-syntax and --ignored-suffix work together (#2260) 2022-08-16 22:42:15 +02:00
mocked-pagers tests: Make mocked pagers work on Windows 2021-01-04 20:22:04 +01:00
scripts Fix typos 2022-06-12 16:38:33 +02:00
snapshots Add new --style called header-filesize and display it by default (#1988) 2022-02-07 20:48:57 +01:00
syntax-tests Color fstab dump and pass fields correctly (#2246) 2022-07-25 21:33:51 +02:00
tester tests/tester: Do not build as tests 2022-08-25 19:27:55 +02:00
utils tests: Move 'mocked pagers' utils to separate file 2021-01-10 14:05:39 +01:00
.gitattributes Modify Linguist overrides 2021-06-14 08:36:20 +02:00
assets.rs Add "Visual Studio Dark+" theme to vec of themes 2021-03-24 18:39:06 +05:00
integration_tests.rs Remove code that tries to handle ANSI escape inputs (#2189) 2022-08-29 18:49:29 +02:00
no_duplicate_extensions.rs HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failable 2021-07-29 08:26:18 +02:00
snapshot_tests.rs CI: Check MSRV without git feature enabled 2022-08-25 19:27:55 +02:00
test_pretty_printer.rs Make bat::PrettyPrinter::syntaxes() iterate over new bat::Syntax struct (#2222) 2022-09-03 12:33:38 +02:00