Fix indent test, we need to use the in-tree runtime dir.
commit0190fee1c2fc2aa9558d51e0a608ef9a6b226775
authorBlaž Hrastnik <blaz@mxxn.io>
dateMon 10 May 2021, 17:57 (5 years ago)
parent41997d1
helix-core/src/indent.rs+5
@@ -289,6 +289,11 @@ where
289289 }],
290290 });
291291
292+ // set runtime path so we can find the queries
293+ let mut runtime = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
294+ runtime.push("../runtime");
295+ std::env::set_var("HELIX_RUNTIME", runtime.to_str().unwrap());
296+
292297 let language_config = loader.language_config_for_scope("source.rust").unwrap();
293298 let highlight_config = language_config.highlight_config(&[]).unwrap();
294299 let syntax = Syntax::new(&doc, highlight_config.clone());