on master help sign in
remove hardcoded '/' from grammar source path (#1986)
commitb03421a8c0811b48da0f30f4d4fce41a1f98a547 authorMichael Davis <mcarsondavis@gmail.com> dateWed 6 Apr 2022, 10:32 (5 years ago) parent275c050
1 file changed+4−2
helix-loader/src/grammar.rs+4−2
helix-loader/src/grammar.rs+4−2
@@ -143,7 +143,8 @@ fn fetch_grammar(grammar: GrammarConfiguration) -> Result<()> {
143143 } = grammar.source
144144 {
145145 let grammar_dir = crate::runtime_dir()
146− .join("grammars/sources")
146+ .join("grammars")
147+ .join("sources")
147148 .join(&grammar.grammar_id);
148149
149150 fs::create_dir_all(&grammar_dir).context(format!(
@@ -233,7 +234,8 @@ fn build_grammar(grammar: GrammarConfiguration) -> Result<()> {
233234 PathBuf::from(&path)
234235 } else {
235236 crate::runtime_dir()
236− .join("grammars/sources")
237+ .join("grammars")
238+ .join("sources")
237239 .join(&grammar.grammar_id)
238240 };
239241