Initial implementation of glob-based syntax mapping

This commit is contained in:
sharkdp authored and David Peter committed 2020-03-22 11:02:51 +01:00
1 parent ba29e07636
commit bd8a13dbc9
7 files changed
+137 -42

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
pub use crate::inputfile::InputFile;
pub use crate::line_range::{HighlightedLineRanges, LineRange, LineRanges};
pub use crate::style::{StyleComponent, StyleComponents};
pub use crate::syntax_mapping::SyntaxMapping;
pub use crate::syntax_mapping::{MappingTarget, SyntaxMapping};
pub use crate::wrap::OutputWrap;
#[derive(Debug, Clone, Copy, PartialEq)]
@@ -60,7 +60,7 @@ pub struct Config<'a> {
pub theme: String,
/// File extension/name mappings
pub syntax_mapping: SyntaxMapping,
pub syntax_mapping: SyntaxMapping<'a>,
/// Command to start the pager
pub pager: Option<&'a str>,