diff options
Diffstat (limited to 'helix-core/src/syntax.rs')
-rw-r--r-- | helix-core/src/syntax.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 5c4c95b9..ae058eb1 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -76,8 +76,10 @@ pub struct IndentQuery { #[cfg(not(feature = "embed_runtime"))] fn load_runtime_file(language: &str, filename: &str) -> Result<String, std::io::Error> { - let root = crate::runtime_dir(); - let path = root.join("queries").join(language).join(filename); + let path = crate::RUNTIME_DIR + .join("queries") + .join(language) + .join(filename); std::fs::read_to_string(&path) } |