OSDN Git Service
(root)
/
redminele
/
redminele.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add Redmine trunk rev 3089
[redminele/redminele.git]
/
redmine
/
vendor
/
plugins
/
coderay-0.7.6.227
/
lib
/
coderay
/
scanners
/
plaintext.rb
1
module CodeRay
2
module Scanners
3
4
class Plaintext < Scanner
5
6
register_for :plaintext, :plain
7
8
include Streamable
9
10
def scan_tokens tokens, options
11
text = (scan_until(/\z/) || '')
12
tokens << [text, :plain]
13
end
14
15
end
16
17
end
18
end