Skip to content

Commit

Permalink
fix(edit_grammars.mjs): add kotlin and fix treeSitterGenerate()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-ley-scrub committed Jan 6, 2025
1 parent 56fd085 commit 05448c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/edit_grammars.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const allLanguages = [
"java",
"javascript",
"json",
"kotlin",
"markdown",
"python",
"ruby",
Expand Down Expand Up @@ -119,7 +120,7 @@ const copyMyBuild = async (c, lang, dest) =>
);

const treeSitterGenerate = async (dir, buildWasm = true) => {
const andMaybeBuildWasm = buildWasm ? "&& tree-sitter build-wasm " : "";
const andMaybeBuildWasm = buildWasm ? "&& tree-sitter build --wasm " : "";
await execPromise(
`tree-sitter generate ${andMaybeBuildWasm} && echo "Generated grammar for ${dir}"`,
path.join(LANGUAGE_METAVARIABLES_DIR, `tree-sitter-${dir}`)
Expand Down

0 comments on commit 05448c3

Please sign in to comment.