remove hardcoded '/' from grammar source path (#1986)

This commit is contained in:
Michael Davis 2022-04-06 10:32:00 -05:00 committed by GitHub
parent 275c05008f
commit b03421a8c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
};