From 0190fee1c2fc2aa9558d51e0a608ef9a6b226775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 10 May 2021 17:57:17 +0900 Subject: [PATCH] Fix indent test, we need to use the in-tree runtime dir. --- helix-core/src/indent.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index 23b21ed3..ca042172 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -289,6 +289,11 @@ where }], }); + // set runtime path so we can find the queries + let mut runtime = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")); + runtime.push("../runtime"); + std::env::set_var("HELIX_RUNTIME", runtime.to_str().unwrap()); + let language_config = loader.language_config_for_scope("source.rust").unwrap(); let highlight_config = language_config.highlight_config(&[]).unwrap(); let syntax = Syntax::new(&doc, highlight_config.clone());