           editor.setCursorBufferPosition([0, 7])
           expectHighlights([0, 1], [2, 2])
 
+      describe "when the tag has an attribute with a value of '/'", ->
+        it "highlights the opening and closing tags", ->
+          buffer.setText """
+            <test a="/">
+              text
+            </test>
+          """
+
+          editor.setCursorBufferPosition([2, 2])
+          expectHighlights([2, 2], [0, 1])
+
+          editor.setCursorBufferPosition([0, 7])
+          expectHighlights([0, 1], [2, 2])
+
       describe "when the opening and closing tags are on the same line", ->
         it "highlight the opening and closing tags", ->
           buffer.setText "<test>text</test>"

    atom.config.set 'bracket-matcher.autocompleteBrackets', true

    waitsForPromise ->
      atom.workspace.open('sample.js')

    waitsForPromise ->
      atom.packages.activatePackage('bracket-matcher')

    waitsForPromise ->

        editor.setCursorBufferPosition([0, 0])
        expectHighlights([0, 0], [0, 4])

        editor.setCursorBufferPosition([0, 5])
        expectHighlights([0, 4], [0, 0])

        editor.setCursorBufferPosition([0, 2])
