|
|
@ -595,8 +595,5 @@ fn mtime(path: &Path) -> Result<SystemTime> {
|
|
|
|
/// directory
|
|
|
|
/// directory
|
|
|
|
pub fn load_runtime_file(language: &str, filename: &str) -> Result<String, std::io::Error> {
|
|
|
|
pub fn load_runtime_file(language: &str, filename: &str) -> Result<String, std::io::Error> {
|
|
|
|
let path = crate::runtime_file(&PathBuf::new().join("queries").join(language).join(filename));
|
|
|
|
let path = crate::runtime_file(&PathBuf::new().join("queries").join(language).join(filename));
|
|
|
|
|
|
|
|
|
|
|
|
log::info!("Loading indents for language: {}", language);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::fs::read_to_string(path)
|
|
|
|
std::fs::read_to_string(path)
|
|
|
|
}
|
|
|
|
}
|
|
|
|