Skip to content

Commit 2c5b1b0

Browse files
authored
Fix recognition of gaps when generating syntax tests (#404)
Fixes #398.
1 parent ec46274 commit 2c5b1b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/syntaxtest_dev.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def _split_scope(scope, *, trim_suffix=False):
561561
def _insert(cls, forest, region, scopes):
562562
if scopes:
563563
first, *rest = scopes
564-
if forest and forest[-1].scope == first:
564+
if forest and forest[-1].scope == first and forest[-1].region.b == region.a:
565565
forest[-1].region = forest[-1].region.cover(region)
566566
else:
567567
forest.append(cls(region, first))

0 commit comments

Comments
 (0)