From b03421a8c0811b48da0f30f4d4fce41a1f98a547 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 6 Apr 2022 10:32:00 -0500 Subject: [PATCH] remove hardcoded '/' from grammar source path (#1986) --- helix-loader/src/grammar.rs | 6 ++++-- 1 file 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) };