Skip to content

Commit

Permalink
such is life
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jul 10, 2024
1 parent 22794ef commit a82d842
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1,041 deletions.
13 changes: 6 additions & 7 deletions resources/edit_grammars.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ const copyMvGrammar = async (lang, dest) => {
if (languagesWithoutMetaVariables.includes(lang)) {
return;
}
await fs.copyFile(
`${METAVARIABLE_GRAMMARS_DIR}/${lang}-metavariable-grammar.js`,
path.join(
LANGUAGE_METAVARIABLES_DIR,
`tree-sitter-${dest ?? lang}/grammar.js`
)
let from = `${METAVARIABLE_GRAMMARS_DIR}/${lang}-metavariable-grammar.js`;
let to = path.join(
LANGUAGE_METAVARIABLES_DIR,
`tree-sitter-${dest ?? lang}/grammar.js`
);
await fs.copyFile(from, to);
console.log(`Copied ${from} to ${to}`);
};

/**
Expand Down Expand Up @@ -339,7 +339,6 @@ async function buildLanguage(language) {
`${tsLangDir}/bindings/rust/build.rs`
);
} else if (language === "yaml") {
await copyMvScanner(language);
await buildSimpleLanguage(log, language);
await copyMyBuild("c", language);
} else if (language === "hcl") {
Expand Down
Loading

0 comments on commit a82d842

Please sign in to comment.