# File lib/facets/more/stateparser.rb, line 234 def next_start( token, index ) re = machine.send( "#{token}_#{MATCH}", self ) i = text.index( re, offset ) if i m = $~ e = m.end(0) if i < index # what comes first? @mode = machine.tokenIsUnit?[token] ? :UNIT : :START @current[:token] = token @current[:begins] = i @current[:ends] = e @current[:match] = m #@current[:info] = f return i end end return index end