diff --git a/bin/update-wasm-grammars.sh b/bin/update-wasm-grammars.sh index ef2b9abc..20e8381e 100755 --- a/bin/update-wasm-grammars.sh +++ b/bin/update-wasm-grammars.sh @@ -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}" diff --git a/web-playground/public/scripts/tree-sitter-pact.wasm b/web-playground/public/scripts/tree-sitter-pact.wasm new file mode 100755 index 00000000..182a58a8 Binary files /dev/null and b/web-playground/public/scripts/tree-sitter-pact.wasm differ