diff options
author | Michael Davis | 2022-04-06 15:32:00 +0000 |
---|---|---|
committer | GitHub | 2022-04-06 15:32:00 +0000 |
commit | b03421a8c0811b48da0f30f4d4fce41a1f98a547 (patch) | |
tree | c6acf49af945a930a7995ad02344f378785aa90a | |
parent | 275c05008fb5bc2f15044738a329939bc6b5befc (diff) |
remove hardcoded '/' from grammar source path (#1986)
-rw-r--r-- | helix-loader/src/grammar.rs | 6 |
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) }; |