summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/plaintext.rb
blob: 7a08c3a55d71be7667e47bc217781b219d76f3fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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