class Fluent::Config::LiteralParser

def scan_single_quoted_string

def scan_single_quoted_string
  string = []
  while true
    if skip(/\'/)
      return string.join
    elsif s = scan(/\\'/)
      string << "'"
    elsif s = scan(/\\\\/)
      string << "\\"
    elsif s = scan(/./)
      string << s
    else
      parse_error! "unexpected end of file in a signle quoted string"
    end
  end
end