   getPattern: ->
     @pattern
 
-  getFilters: ->
-    filters = []
-    isEscaped = ({range}) => isEscapedCharRange(@editor, range)
-    filters.push(isEscaped)
-    filters
-
   scanPair: (which, direction, from, fn) ->
     switch direction
       when 'forward'


    super

  getPairState: ->
    @pairStates.shift()

class TagFinder extends PairFinder
  pattern: /<(\/?)([^\s>]+)[^>]*>/g

  getPairState: (event) ->
    backslash = event.match[1]
    {
      state: if (backslash is '') then 'open' else 'close'

      range: event.range
    }

  findPairState: (stack, {name}) ->
    for state in stack by -1 when state.name is name
      return state

  spliceStack: (stack, eventState) ->
    if pairEventState = @findPairState(stack, eventState)
      stack.splice(stack.indexOf(pairEventState))
    pairEventState

module.exports = {
  BracketFinder
