diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index 2b003a3d..2b1f811f 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -290,7 +290,7 @@ impl<'a> SyntaxMapping<'a> { &self.mappings } - pub(crate) fn get_syntax_for(&self, path: impl AsRef) -> Option> { + pub fn get_syntax_for(&self, path: impl AsRef) -> Option> { // Try matching on the file name as-is. let candidate = Candidate::new(&path); let candidate_filename = path.as_ref().file_name().map(Candidate::new);