summaryrefslogtreecommitdiff
path: root/sample/div.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-22 23:52:44 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-22 23:52:44 +0200
commit5b1a49fdd3bef559991242a4ad7d3d1ed9cb48c8 (patch)
tree9e74edadd344247e805f6bd3588a34fdf0dbfa21 /sample/div.rb
parent69246fc8ed0344eae4dab35286813a00010a08cb (diff)
parent2abfc49bdc9a9f4e86c90aa968c302ca76c20812 (diff)
downloadcoderay-5b1a49fdd3bef559991242a4ad7d3d1ed9cb48c8.tar.gz
Merge branch 'master' into lua-scanner
Conflicts: lib/coderay/styles/alpha.rb lib/coderay/token_kinds.rb
Diffstat (limited to 'sample/div.rb')
-rw-r--r--sample/div.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/sample/div.rb b/sample/div.rb
deleted file mode 100644
index 27b6f32..0000000
--- a/sample/div.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-require 'coderay'
-
-puts CodeRay.scan(DATA.read, :ruby).div
-
-__END__
-for a in 0..255
- a = a.chr
- begin
- x = eval("?\\#{a}")
- if x == a[0]
- next
- else
- print "#{a}: #{x}"
- end
- rescue SyntaxError => boom
- print "#{a}: error"
- end
- puts
-end