minor cleanup.
This commit is contained in:
parent
93f9581d8a
commit
5ddeeac966
@ -58,7 +58,7 @@ while read -r test_case; do
|
|||||||
if [ "$test_mode" = "duster" ] || [ "$test_mode" = "" ]; then
|
if [ "$test_mode" = "duster" ] || [ "$test_mode" = "" ]; then
|
||||||
duster_output=$(xargs -a <(find "$test_group" -maxdepth 1 -mindepth 1 -type f -name 'main.dust'; find "$test_group" -maxdepth 1 -mindepth 1 -type f -name '*.dust' ! -name 'main.dust' | sort) "$DIR/../target/debug/duster-cli" < "$test_case")
|
duster_output=$(xargs -a <(find "$test_group" -maxdepth 1 -mindepth 1 -type f -name 'main.dust'; find "$test_group" -maxdepth 1 -mindepth 1 -type f -name '*.dust' ! -name 'main.dust' | sort) "$DIR/../target/debug/duster-cli" < "$test_case")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$test_mode" = "dustjs" ]; then
|
if [ "$test_mode" = "dustjs" ]; then
|
||||||
cat <<<"$dustjs_output"
|
cat <<<"$dustjs_output"
|
||||||
elif [ "$test_mode" = "duster" ]; then
|
elif [ "$test_mode" = "duster" ]; then
|
||||||
|
@ -548,11 +548,10 @@ fn partial_with_plain_tag<'a>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn partial_quoted_tag(i: &str) -> IResult<&str, Vec<TemplateElement>> {
|
fn partial_quoted_tag(i: &str) -> IResult<&str, Vec<TemplateElement>> {
|
||||||
// TODO: make all consuming
|
all_consuming(many1(alt((
|
||||||
many1(alt((
|
|
||||||
map(span, TemplateElement::TESpan),
|
map(span, TemplateElement::TESpan),
|
||||||
map(map(reference, DustTag::DTReference), TemplateElement::TETag),
|
map(map(reference, DustTag::DTReference), TemplateElement::TETag),
|
||||||
)))(i)
|
))))(i)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn partial_with_quoted_tag<'a>(
|
fn partial_with_quoted_tag<'a>(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user