Skip to content

Commit

Permalink
Add CI check that tree-sitter files are up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 3, 2024
1 parent 7145bf1 commit b25452b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- run: git tag pre-updates
- run: npm install
- run: npm run gen
- run: npm test
# FIXME: also parse tests/*.just

- name: Verify `npm run gen` does not change files
run: git diff pre-updates --no-patch --exit-code
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = grammar({
),

// boolean : ':=' ('true' | 'false')
boolean: (_) => choice("true", "false"),
boolean: (_) => choice("true", "false", "a"),

// expression : 'if' condition '{' expression '}' 'else' '{' expression '}'
// | value '/' expression
Expand Down

0 comments on commit b25452b

Please sign in to comment.