     found = null
 
     # Quote is not nestable. So when we encounter 'open' while finding 'close',
-    # it is forwarding pair, so stoppable is not @allowForwarding
+    # it is forwarding pair, so stoppable unless @allowForwarding
     findingNonForwardingClosingQuote = (this instanceof QuoteFinder) and which is 'close' and not @allowForwarding
     scanner = scanEditorInDirection.bind(null, @editor, direction, @getPattern(), {from, @allowNextLine})
     scanner (event) =>

      when 'close'
        openState = @spliceStack(stack, eventState)
        unless openState?
          return true

        if stack.length is 0
          openRange = openState.range
          openRange.start.isEqual(from) or (@allowForwarding and openRange.start.row is from.row)

  findCloseForward: (from) ->
    @findPair('close', 'forward', from)


class PairFinder
  constructor: (@editor, options={}) ->
    {@allowNextLine, @allowForwarding, @pair, @inclusive} = options
    @inclusive ?= true
    if @pair?
      @setPatternForPair(@pair)

