To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / gems / coderay-0.9.7 / lib / coderay / scanners / plaintext.rb @ 442:753f1380d6bc

History | View | Annotate | Download (316 Bytes)

1
module CodeRay
2
module Scanners
3

    
4
  class Plaintext < Scanner
5

    
6
    register_for :plaintext, :plain
7
    title 'Plain text'
8
    
9
    include Streamable
10
    
11
    KINDS_NOT_LOC = [:plain]
12
    
13
    def scan_tokens tokens, options
14
      text = (scan_until(/\z/) || '')
15
      tokens << [text, :plain]
16
    end
17

    
18
  end
19

    
20
end
21
end