aboutsummaryrefslogtreecommitdiff
path: root/helix-loader
diff options
context:
space:
mode:
authorMichael Davis2022-04-06 15:32:00 +0000
committerGitHub2022-04-06 15:32:00 +0000
commitb03421a8c0811b48da0f30f4d4fce41a1f98a547 (patch)
treec6acf49af945a930a7995ad02344f378785aa90a /helix-loader
parent275c05008fb5bc2f15044738a329939bc6b5befc (diff)
remove hardcoded '/' from grammar source path (#1986)
Diffstat (limited to 'helix-loader')
-rw-r--r--helix-loader/src/grammar.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
index f0c5ea28..7474713a 100644
--- a/helix-loader/src/grammar.rs
+++ b/helix-loader/src/grammar.rs
@@ -143,7 +143,8 @@ fn fetch_grammar(grammar: GrammarConfiguration) -> Result<()> {
} = grammar.source
{
let grammar_dir = crate::runtime_dir()
- .join("grammars/sources")
+ .join("grammars")
+ .join("sources")
.join(&grammar.grammar_id);
fs::create_dir_all(&grammar_dir).context(format!(
@@ -233,7 +234,8 @@ fn build_grammar(grammar: GrammarConfiguration) -> Result<()> {
PathBuf::from(&path)
} else {
crate::runtime_dir()
- .join("grammars/sources")
+ .join("grammars")
+ .join("sources")
.join(&grammar.grammar_id)
};