Use --file-name to detect syntax highlighting

Closes #891
This commit is contained in:
Kyle Criddle
2020-03-26 16:49:16 -06:00
committed by David Peter
parent 96aedf6240
commit a3f8140fbe
3 changed files with 64 additions and 14 deletions

View File

@ -78,6 +78,7 @@ impl<'b> Controller<'b> {
&self.config,
&self.assets,
*input_file,
file_name,
&mut reader,
);
self.print_file(reader, &mut printer, writer, *input_file, file_name)