                 if shouldBreak == true
                     break
             currentIndex += value.length;
+
+    ###*
+     * Gets the regex used when looking for a word within the editor
+     * @param  {string} term Term being search.
+     * @return {regex}       Regex to be used.
+    ###
+    getJumpToRegex: (term) ->
+        return ///^(class|interface|abstract class|trait)\ +#{term}///i


        @manager.addBackTrack(editor.getPath(), editor.getCursorBufferPosition())
        if matches[0] == term || matches.length == 1
            atom.workspace.open(classMap[matches[0]], {
                searchAllPanes: true
            })


            withCurrentNamespace = currentClass.replace(/(\w+)$/, term);
            if matches.indexOf(withCurrentNamespace) != -1
                @jumpWord = /(?:\\)(\w+)$/i.exec(term)[1]
                atom.workspace.open(classMap[withCurrentNamespace], {
                    searchAllPanes: true
                })
