# File lib/chef_zero/solr/solr_parser.rb, line 33 def parse_token # Skip whitespace skip_whitespace return nil if eof? # Operators operator = peek_operator_token if operator @index+=operator.length operator else # Everything that isn't whitespace or an operator, is part of a term # (characters plus backslashed escaped characters) start_index = @index begin if @query_string[@index] == '\\' @index+=1 end @index+=1 if !eof? end while !eof? && peek_term_token @query_string[start_index..@index-1] end end