Fix handling of alternations and optional nodes in query analysis
This commit is contained in:
parent
9daec9cb22
commit
456b1f6771
3 changed files with 190 additions and 52 deletions
12
script/test
12
script/test
|
|
@ -83,10 +83,14 @@ done
|
|||
|
||||
shift $(expr $OPTIND - 1)
|
||||
|
||||
if [[ -n $TREE_SITTER_TEST_LANGUAGE_FILTER || -n $TREE_SITTER_TEST_EXAMPLE_FILTER || -n $TREE_SITTER_TEST_TRIAL_FILTER ]]; then
|
||||
top_level_filter=corpus
|
||||
else
|
||||
top_level_filter=$1
|
||||
top_level_filter=$1
|
||||
|
||||
if [[ \
|
||||
-n $TREE_SITTER_TEST_LANGUAGE_FILTER || \
|
||||
-n $TREE_SITTER_TEST_EXAMPLE_FILTER || \
|
||||
-n $TREE_SITTER_TEST_TRIAL_FILTER \
|
||||
]]; then
|
||||
echo ${top_level_filter:=corpus}
|
||||
fi
|
||||
|
||||
if [[ "${mode}" == "debug" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue