Limit nested subpatterns