-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* more grammar fixes * regenerate parser * improve parsing script * regenerate parser * deal with last known failure * test with more projects * regenerate parser * regenerate the parser * add tests for queries * improve error messages * remove unnecessary step
- Loading branch information
1 parent
c73f666
commit 0d08703
Showing
9 changed files
with
115,194 additions
and
110,730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +0,0 @@ | ||
zig/test/behavior/struct.zig | ||
zig/test/behavior/slice.zig | ||
zig/test/behavior/array.zig | ||
zig/test/behavior/pointers.zig | ||
zig/test/behavior/slice_sentinel_comptime.zig | ||
zig/test/behavior/bugs/12972.zig | ||
zig/test/behavior/packed_struct_explicit_backing_int.zig | ||
zig/lib/std/os.zig | ||
zig/lib/std/fs.zig | ||
zig/lib/std/mem.zig | ||
zig/lib/std/zig/c_translation.zig | ||
zig/lib/std/os/test.zig | ||
zig/lib/std/os/linux/bpf/btf.zig | ||
zig/lib/std/os/linux/bpf.zig | ||
zig/lib/std/os/windows.zig | ||
zig/lib/std/os/uefi/protocols/ip6_protocol.zig | ||
zig/lib/std/os/uefi/protocols/hii.zig | ||
zig/lib/std/os/uefi/protocols/simple_text_input_ex_protocol.zig | ||
zig/lib/std/os/uefi/protocols/simple_network_protocol.zig | ||
zig/lib/std/os/uefi/protocols/absolute_pointer_protocol.zig | ||
zig/lib/std/os/uefi/protocols/edid_override_protocol.zig | ||
zig/lib/std/os/uefi/tables/boot_services.zig | ||
zig/lib/std/unicode.zig | ||
zig/lib/std/Thread.zig | ||
zig/lib/std/json/test.zig | ||
zig/lib/std/macho.zig | ||
zig/lib/std/c/openbsd.zig | ||
zig/src/link/Wasm/Object.zig | ||
zig/src/link/Wasm/Archive.zig | ||
zig/src/link/MachO/Archive.zig | ||
zig/src/codegen/llvm/bindings.zig | ||
zig/src/Autodoc.zig | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/env bash | ||
|
||
set -Eeu -o pipefail | ||
shopt -s inherit_errexit | ||
|
||
this_file="${BASH_SOURCE[0]}" | ||
if [ "${this_file::1}" != '/' ]; then | ||
this_file="$PWD/$this_file" | ||
fi | ||
|
||
this_dir="${this_file%/*}" | ||
project_root="${this_dir%/*}" | ||
queries_dir="$project_root/queries" | ||
|
||
while IFS= read -r query; do | ||
# this tests if the queries can be compiled, not if they are producing the | ||
# expected output | ||
if ! >/dev/null tree-sitter query --test "$query" <(echo ""); then | ||
echo "Query $query failed!" | ||
exit_code=1 | ||
fi | ||
done < <(find "$queries_dir" -name "*.scm") | ||
|
||
exit "${exit_code:-0}" |
Oops, something went wrong.