elpa/enh-ruby-mode/ruby/erm_buffer.rb
#:nodoc: internal use only
:nodoc: internal use only
: nodoc : internal use only
def realadd sym, tok, len
      if sym == :indent
        pos = @count + len
        @indent_stack << tok << pos if pos.between? @point_min, @point_max
        return
      end
      start = @count
      throw :parse_complete if start > @point_max
      len = 2 + @src.index("\n", start) - start unless len
      pos = @count += len
      return if pos < @point_min
      start = @point_min if start < @point_min
      pos = @point_max   if pos   > @point_max
      idx = FONT_LOCK_NAMES[sym]
      if t = @res[idx] then
        if t.last == start then
          t[-1] = pos
        else
          t << start << pos
        end
      else
        @res[idx] = [start, pos]
      end
      throw :parse_complete if pos == @point_max
    end
def realadd sym , tok , len if sym == :indent pos = @count + len @indent_stack << tok << pos if pos . between? @point_min , @point_max return end start = @count throw :parse_complete if start > @point_max len = 2 + @src . index ( "\n" , start ) - start unless len pos = @count += len return if pos < @point_min start = @point_min if start < @point_min pos = @point_max if pos > @point_max idx = FONT_LOCK_NAMES [ sym ] if t = @res [ idx ] then if t . last == start then t [ - 1 ] = pos else t << start << pos end else @res [ idx ] = [ start , pos ] end throw :parse_complete if pos == @point_max end
:nodoc: internal use only
: nodoc : internal use only
sym
tok
len