summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/plaintext.rb
blob: 432745fc3b5031ad3e432bf8dd0c077eefa1a348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module CodeRay
module Scanners

  class Plaintext < Scanner

    register_for :plaintext, :plain

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

  end

end
end