regx_options (RubyLexer)

    # File lib/ruby_lexer.rb, line 437
      def regx_options # 15 lines
        good, bad = [], []

        if src.scan(/[a-z]+/) then
          good, bad = src.matched.split(//).partition { |s| s =~ /^[ixmonesu]$/ }
        end

        unless bad.empty? then
          rb_compile_error("unknown regexp option%s - %s" %
                           [(bad.size > 1 ? "s" : ""), bad.join.inspect])
        end

        return good.join
      end