Skip to content

Commit

Permalink
Build ABI 14 as well as 13 when generating the grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-pinkus committed Oct 8, 2022
1 parent b5e44e8 commit a20a478
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/write-generated-grammar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ git reset HEAD@{1}
npm install
npm run test-ci

# Now that we know the parser works, build for ABI 14 (but don't use this as the default because
# it's not compatible everywhere).
mv src/parser.c src/parser_abi13.c
npx tree-sitter generate --abi 14
mv src/parser.c src/parser_abi14.c
mv src/parser_abi13.c src/parser.c

# Commit specific generated files, attributing the changes to the primary maintainer of this
# grammar. Notably, we do not commit the `.o` files generated during the build, just the source.
git config --local user.email alex.pinkus@gmail.com
Expand Down

0 comments on commit a20a478

Please sign in to comment.