            @$(selector).prev().hasClass('namespace') && @$(selector).hasClass('class') ||
            @$(selector).next().hasClass('class')
             return @$(selector).parent().children('.namespace, .class:not(.operator):not(.constant)')
+
+        if @$(selector).prev().hasClass('namespace') || @$(selector).next().hasClass('inherited-class')
+            return @$(selector).parent().children('.namespace, .inherited-class')
 
         return selector
 

            # if we found a file that end with the exact namespace given, we store it
            bestMatch    = null
            useBestMatch = true

            for key,value of matches
                if value.endsWith(term)

module.exports =
class GotoClass extends AbstractGoto

    hoverEventSelectors: '.entity.inherited-class, .support.namespace, .support.class, .comment-clickable .region'
    clickEventSelectors: '.entity.inherited-class, .support.namespace, .support.class'
    gotoRegex: /^\\?[A-Z][A-za-z0-9_]*(\\[A-Z][A-Za-z0-9_])*$/

    ###*
