# File lib/mustache/parser.rb, line 179
    def scan_text
      text = scan_until_exclusive(regexp(otag))

      if text.nil?
        # Couldn't find any otag, which means the rest is just static text.
        text = @scanner.rest
        # Mark as done.
        @scanner.clear
      end

      text.force_encoding(@encoding) if @encoding

      @result << [:static, text]
    end