Since scopes can overlap, extract_scope might extract an over-broad scope (like
a function call) and try to wrap a docstring within a function call (like a
zope.interface.Attribute) by wrapping the entire text of the function call.

Fix this by extracting only named scope boundaries which we which to match.