1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 19:02:22 +01:00

Major restructuring of theme/syntax handling

This commit is contained in:
sharkdp
2020-03-21 16:48:27 +01:00
committed by David Peter
parent b1b8addf7e
commit 06b7be7ee9
10 changed files with 84 additions and 72 deletions

View File

@@ -19,7 +19,7 @@ fn no_duplicate_extensions() {
"sass",
];
let assets = HighlightingAssets::new();
let assets = HighlightingAssets::from_binary();
let mut extensions = HashSet::new();

View File

@@ -18,7 +18,7 @@ struct SyntaxDetectionTest {
impl SyntaxDetectionTest {
fn new() -> Self {
SyntaxDetectionTest {
assets: HighlightingAssets::new(),
assets: HighlightingAssets::from_binary(),
syntax_mapping: SyntaxMapping::new(),
temp_dir: TempDir::new("bat_syntax_detection_tests")
.expect("creation of temporary directory"),