Skip to content

Commit

Permalink
Add Pact grammar to WASM build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Xophmeister committed Jul 9, 2024
1 parent 606fad2 commit ec70123
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/update-wasm-grammars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,18 @@ css() {
echo -e "${GREEN}CSS: Done${NC}"
}

pact() {
echo -e "${BLUE}Pact: Fetching${NC}"
git clone https://github.com/kadena-community/tree-sitter-pact.git "${WORKDIR}/tree-sitter-pact" &> /dev/null
REV=$(ref_for_language "pact")
pushd "${WORKDIR}/tree-sitter-pact" &> /dev/null
git checkout "$REV" &> /dev/null
popd &> /dev/null
echo -e "${ORANGE}Pact: Building${NC}"
tree-sitter build --wasm "${WORKDIR}/tree-sitter-pact"
echo -e "${GREEN}Pact: Done${NC}"
}

(trap 'kill 0' SIGINT; json & nickel & ocaml & ocamllex & bash & rust & toml & tree-sitter-query & css & wait)
(trap 'kill 0' SIGINT; json & nickel & ocaml & ocamllex & bash & rust & toml & tree-sitter-query & css & pact & wait)

echo -e "${GREEN}Done! All grammars have been updated${NC}"
Binary file not shown.

0 comments on commit ec70123

Please sign in to comment.