 
   getPairInfo: (from) ->
     pairInfo = null
-    if @_newStyle
-      closeRange = @findClose(from)
-      openRange = @findOpen(closeRange.end) if closeRange?
-    else
+    if @instanceof('Tag')
+      # Old Style
       pattern = @getPattern()
       closeRange = @findClose(from, pattern)
       openRange = @findOpen(closeRange.end, pattern) if closeRange?
+    else
+      closeRange = @findClose(from)
+      openRange = @findOpen(closeRange.end) if closeRange?
 
     unless (openRange? and closeRange?)
       return null

      escaped = true
  escaped

# Return 'open' or 'close'
getPairState = (editor, event) ->
  {matchText, range, match} = event
  switch match.length
    when 2
      pairStateInBufferRange(editor, event)
    when 3
      switch
        when match[1] then 'open'
        when match[2] then 'close'

pairStateInBufferRange = (editor, {matchText, range}) ->
  text = getLineTextToBufferPosition(editor, range.end)
  escapedChar = _.escapeRegExp(matchText)

# -------------------------
class Pair extends TextObject
  @extend(false)
  allowNextLine: false
  adjustInnerRange: true
  pair: null
