bat/src
Martin Nordholts aefc8fd824 src/printer.rs: Simplify Plain Text fallback code
By forwarding the task to find the `Plain Text` syntax to `assets`. Not only does
the code become simpler; we also get rid of a call to `self.get_syntax_set()`
which is beneficial to the long term goal of replacing `syntaxes.bin` with
`minimal_syntaxes.bin`.

Note that the use of `.expect()` is not a regression in error handling. It was
previously hidden in `.find_syntax_plain_text()`.
2021-09-29 17:54:45 +02:00
..
assets build_assets.rs: Enable dump of syntax dependencies to Graphviz dot file 2021-09-24 20:07:55 +02:00
bin/bat HighlightingAssets: Turn get_syntax_for_path() into public API 2021-09-28 07:26:20 +02:00
assets.rs src/printer.rs: Simplify Plain Text fallback code 2021-09-29 17:54:45 +02:00
config.rs Add various other code refactorings 2021-09-12 15:50:10 +02:00
controller.rs Improve iterator usage 2021-09-12 15:50:10 +02:00
decorations.rs Reduce public API 2020-04-22 23:55:28 +02:00
diff.rs Improve readability 2021-03-07 14:59:10 +01:00
error.rs Replace deprecated 'error-chain' with 'thiserror' (#1820) 2021-08-26 13:12:21 +02:00
input.rs src/assets.rs: Extract helper method OpenedInput::path() 2021-09-27 08:00:58 +02:00
less.rs Reduce nesting in if blocks by short circuiting 2021-09-12 15:50:10 +02:00
lib.rs Extract some private submodules from 'bat::assets' (#1850) 2021-09-15 07:59:33 +02:00
line_range.rs PR comments addressed for line range +delta syntax 2021-08-23 19:55:41 +02:00
macros.rs Introduce bat_warning! helper macro 2020-12-28 09:27:40 +01:00
output.rs Replace deprecated 'error-chain' with 'thiserror' (#1820) 2021-08-26 13:12:21 +02:00
pager.rs Refactor "Use matches macro" 2021-05-27 12:05:07 +02:00
paging.rs Move PagingMode to separate module 2020-04-22 23:55:28 +02:00
preprocessor.rs replace_nonprintable: Keep \n around 2020-12-19 10:27:06 +01:00
pretty_printer.rs HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failable 2021-07-29 08:26:18 +02:00
printer.rs src/printer.rs: Simplify Plain Text fallback code 2021-09-29 17:54:45 +02:00
style.rs style: add component 'rule' for horizontal file delimiter 2020-10-12 09:04:27 +01:00
syntax_mapping.rs Use deref coercion to simplify some argument passing 2021-09-12 15:50:10 +02:00
terminal.rs Add ansi theme to replace ansi-light and ansi-dark 2020-12-21 17:05:10 +01:00
wrapping.rs Addressed PR feedback. Upped min version and used matches! macro 2021-01-09 15:21:26 +01:00