Sha256: a409ab1723fb895fc240cecae3954dd780d7401c910708cca78dc4ee5aa20fa5

Contents?: true

Size: 255 Bytes

Versions: 14

Compression:

Stored size: 255 Bytes

Contents

module CodeRay
module Scanners

  class Plaintext < Scanner

    register_for :plaintext, :plain
    
    include Streamable

    def scan_tokens tokens, options
      text = (scan_until(/\z/) || '')
      tokens << [text, :plain]
    end

  end

end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
raldred-coderay-0.9.339 ./lib/coderay/scanners/plaintext.rb
raldred-coderay-0.9.3391 ./lib/coderay/scanners/plaintext.rb
raldred-coderay-0.9.3431 ./lib/coderay/scanners/plaintext.rb
coderay-0.8.357 ./lib/coderay/scanners/plaintext.rb
coderay-0.8.273 ./lib/coderay/scanners/plaintext.rb
coderay-0.8.263 ./lib/coderay/scanners/plaintext.rb
coderay-0.8.303 ./lib/coderay/scanners/plaintext.rb
coderay-0.8.260 ./lib/coderay/scanners/plaintext.rb
coderay-0.8.270 ./lib/coderay/scanners/plaintext.rb
coderay-0.8.312 ./lib/coderay/scanners/plaintext.rb
typo-5.1.98 vendor/gems/coderay-0.8.260/lib/coderay/scanners/plaintext.rb
typo-5.2.98 vendor/gems/coderay-0.8.260/lib/coderay/scanners/plaintext.rb
typo-5.2 vendor/gems/coderay-0.8.260/lib/coderay/scanners/plaintext.rb
typo-5.3 vendor/gems/coderay-0.8.260/lib/coderay/scanners/plaintext.rb