diff --git a/plugins/syntaxtest_dev.py b/plugins/syntaxtest_dev.py index f5a68a76..af6c8fb0 100644 --- a/plugins/syntaxtest_dev.py +++ b/plugins/syntaxtest_dev.py @@ -561,7 +561,7 @@ def _split_scope(scope, *, trim_suffix=False): def _insert(cls, forest, region, scopes): if scopes: first, *rest = scopes - if forest and forest[-1].scope == first: + if forest and forest[-1].scope == first and forest[-1].region.b == region.a: forest[-1].region = forest[-1].region.cover(region) else: forest.append(cls(region, first))