   constructor: (@editor, @char) ->
 
   findOpeningQuote: (pos) ->
-
     pos = pos.copy()
     while pos.row >= 0
       line = @editor.lineForBufferRow(pos.row)

        ++ end.column
      end.column = 0
      ++ end.row
    
    [false]

class SelectInsideBrackets extends TextObject
  constructor: (@editor, @beginChar, @endChar) ->

  findOpeningBracket: (pos) ->

    pos = pos.copy()
    depth = 0
    while pos.row >= 0

      -- pos.row

  select: ->
    start = @findOpeningBracket(@editor.getCursorBufferPosition())
    return [false] unless start?

    ++ start.column  # skip the opening bracket

    end = start.copy()
    depth = 0

