Merge pull request #939 from tree-sitter/partial-order-precedence

Allow precedences to be specified using strings and a partial ordering relation
This commit is contained in:
Max Brunsfeld 2021-02-25 13:16:01 -08:00 committed by GitHub
commit e49a56ea4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 731 additions and 246 deletions

View file

@ -247,6 +247,16 @@ fn test_feature_corpus_files() {
failure_count += 1;
}
} else {
if let Err(e) = &generate_result {
eprintln!(
"Unexpected error for test grammar '{}':\n{}",
language_name,
e.message()
);
failure_count += 1;
continue;
}
let corpus_path = test_path.join("corpus.txt");
let c_code = generate_result.unwrap().1;
let language = get_test_language(language_name, &c_code, Some(&test_path));