Skip to content

Commit

Permalink
Add a basic highlighting test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 4, 2024
1 parent 8039370 commit e785ea5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,17 @@ jobs:
fi
- run: npm test
# FIXME: also parse tests/*.just

just:
name: Verify Just can parse our test files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- shell: bash
run: |
find . -type f -iregex '.*[\./]just[^\./]*' | while read -r fname
do
echo checking "$fname"
just --list --justfile "$fname"
done
18 changes: 18 additions & 0 deletions test/highlight/recipes.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/use/bin/env just
# <- comment
# ^^^^^^^^^^^^^^^^^ comment

foo:
# <- function
# ^ operator

@bar:
# <- operator
# ^ function
# ^ operator

baz: foo bar
# <- function
# ^ operator
# ^ function
# ^ function
Empty file added test/highlight/statements.just
Empty file.

0 comments on commit e785ea5

Please sign in to comment.