Skip to content

Commit

Permalink
remove hardcoded '/' from grammar source path (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored Apr 6, 2022
1 parent 275c050 commit b03421a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helix-loader/src/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down Expand Up @@ -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)
};

Expand Down

0 comments on commit b03421a

Please sign in to comment.