Skip to content

Commit

Permalink
Merge pull request #484 from Enselic/fix-ci
Browse files Browse the repository at this point in the history
Update testdata/known_syntest_failures_fancy.txt to make CI green
  • Loading branch information
Enselic committed Jul 22, 2023
2 parents 945771d + fe8dcc8 commit f4ee0e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsing/syntax_set.rs
Expand Up @@ -599,7 +599,7 @@ impl SyntaxSetBuilder {
}

for context_id in all_context_ids[syntax_index].values() {
let mut context = &mut all_contexts[context_id.syntax_index][context_id.context_index];
let context = &mut all_contexts[context_id.syntax_index][context_id.context_index];
if let Some(prototype_id) = prototype {
if context.meta_include_prototype && !no_prototype.contains(context_id) {
context.prototype = Some(*prototype_id);
Expand Down Expand Up @@ -630,7 +630,7 @@ impl SyntaxSetBuilder {
if !context.uses_backrefs && context.patterns.iter().any(|pattern| {
matches!(pattern, Pattern::Include(ContextReference::Direct(id)) if all_contexts[id.syntax_index][id.context_index].uses_backrefs)
}) {
let mut context = &mut all_contexts[syntax_index][context_index];
let context = &mut all_contexts[syntax_index][context_index];
context.uses_backrefs = true;
// look for contexts including this context
found_more_backref_includes = true;
Expand Down
1 change: 1 addition & 0 deletions testdata/known_syntest_failures_fancy.txt
@@ -1,4 +1,5 @@
loading syntax definitions from testdata/Packages
FAILED testdata/Packages/C#/tests/syntax_test_Strings.cs: 38
FAILED testdata/Packages/LaTeX/syntax_test_latex.tex: 1
FAILED testdata/Packages/Markdown/syntax_test_markdown.md: 11
exiting with code 1

0 comments on commit f4ee0e9

Please sign in to comment.