         @subAtom = new SubAtom
         self = this
         atom.workspace.observeTextEditors (editor) ->
+            self.parseComments editor
             self.registerEvents editor
 
         # When you go back to only have 1 pane the events are lost, so need

GotoSelectView = require './goto-select-list-view.coffee'
{TextEditor} = require 'atom'
$ = require 'jquery'

module.exports =


    registerEvents: (editor) ->
        if editor.getGrammar().scopeName.match /text.html.php$/
            textEditorElement = atom.views.getView(editor)
            hoverEventSelectors = '.entity.inherited-class, .support.namespace, .support.class, .comment-clickable .region'
            clickEventSelectors = '.entity.inherited-class, .support.namespace, .support.class'
            scrollViewElement = $(textEditorElement.shadowRoot).find('.scroll-view')

            self = @
            @subAtom.add scrollViewElement, 'mousemove', hoverEventSelectors, (event) =>
                if event.altKey == false
                    return
                selector = @getSelector(event)
