tokadd_escape (RubyLexer)

    # File lib/ruby_lexer.rb, line 467
      def tokadd_escape term # 20 lines
        case
        when src.scan(/\\\n/) then
          # just ignore
        when src.scan(/\\([0-7]{1,3}|x[0-9a-fA-F]{1,2})/) then
          self.string_buffer << src.matched
        when src.scan(/\\([MC]-|c)(?=\\)/) then
          self.string_buffer << src.matched
          self.tokadd_escape term
        when src.scan(/\\([MC]-|c)(.)/) then
          self.string_buffer << src.matched
        when src.scan(/\\[McCx]/) then
          rb_compile_error "Invalid escape character syntax"
        when src.scan(/\\(.)/m) then
          self.string_buffer << src.matched
        else
          rb_compile_error "Invalid escape character syntax"
        end
      end