aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/syntax.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-09 16:02:53 +0000
committerBlaž Hrastnik2021-05-09 16:02:53 +0000
commit0f77f543e5a7a6be0eabd2d4b72591cdafc7ec71 (patch)
treee4705a2e5f04a3e710d77b26b1533f1b31b2fd45 /helix-core/src/syntax.rs
parentd33e8fd3d8fa2062acf697b2feb74877ed309561 (diff)
Determine runtime dir based on executable location or env override.
Diffstat (limited to 'helix-core/src/syntax.rs')
-rw-r--r--helix-core/src/syntax.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index dbeed45c..aaf22edc 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -63,7 +63,8 @@ fn read_query(language: &str, filename: &str) -> String {
static INHERITS_REGEX: Lazy<Regex> =
Lazy::new(|| Regex::new(r";+\s*inherits\s*:?\s*([a-z_,()]+)\s*").unwrap());
- let root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
+ let root = crate::runtime_dir();
+ // let root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let path = root
.join("../runtime/queries")