From 0f77f543e5a7a6be0eabd2d4b72591cdafc7ec71 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 10 May 2021 01:02:53 +0900 Subject: Determine runtime dir based on executable location or env override. --- helix-core/src/syntax.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helix-core/src/syntax.rs') 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 = 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") -- cgit v1.2.3-70-g09d2