mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Separate inputs from config
This commit is contained in:
1 parent
5e5cb89da6
commit
1dc328ad49
10 files changed
+61
-41
No files matched your search
@@ -219,6 +219,7 @@ impl HighlightingAssets {
|
||||
.get_extension_syntax(&file_name)
|
||||
.or(self.get_first_line_syntax(reader)),
|
||||
(_, InputFile::ThemePreviewFile) => self.syntax_set.find_syntax_by_name("Rust"),
|
||||
(None, InputFile::FromReader(s, _)) => None,
|
||||
};
|
||||
|
||||
syntax.unwrap_or_else(|| self.syntax_set.find_syntax_plain_text())
|
||||
|
||||
Reference in new issue
Block a user