diff --git a/cli/loader/src/lib.rs b/cli/loader/src/lib.rs
index d556aa27..b6f30b89 100644
--- a/cli/loader/src/lib.rs
+++ b/cli/loader/src/lib.rs
@@ -2,7 +2,7 @@
use std::collections::HashMap;
use std::ffi::{OsStr, OsString};
-use std::io::BufReader;
+use std::io::{BufRead, BufReader};
use std::ops::Range;
use std::path::{Path, PathBuf};
use std::process::Command;
@@ -227,6 +227,30 @@ impl Loader {
Ok(None)
}
+ pub fn language_configuration_for_first_line_regex(
+ &self,
+ path: &Path,
+ ) -> Result