summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-16 01:01:12 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-16 01:01:12 +0200
commitcb41b00d5673312f4982e914883f9cea95f2ccae (patch)
treefea5059b331244efd4400e36e5ba288a5a0bddc1 /lib
parent8e67efef5b412b16d755fb47538e24a2b6bafce0 (diff)
downloadcoderay-cb41b00d5673312f4982e914883f9cea95f2ccae.tar.gz
cleanup TODOs, FIXMEs
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay.rb1
-rw-r--r--lib/coderay/encoders/html/numbering.rb2
-rw-r--r--lib/coderay/encoders/statistic.rb1
-rwxr-xr-xlib/coderay/token_kinds.rb2
4 files changed, 2 insertions, 4 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb
index 88c7cc2..24ae5a2 100644
--- a/lib/coderay.rb
+++ b/lib/coderay.rb
@@ -166,7 +166,6 @@ module CodeRay
#
# See also demo/demo_simple.
def scan code, lang, options = {}, &block
- # FIXME: return a proxy for direct-stream encoding
TokensProxy.new code, lang, options, block
end
diff --git a/lib/coderay/encoders/html/numbering.rb b/lib/coderay/encoders/html/numbering.rb
index 332145b..5908bf0 100644
--- a/lib/coderay/encoders/html/numbering.rb
+++ b/lib/coderay/encoders/html/numbering.rb
@@ -75,7 +75,7 @@ module Encoders
line_number = start
output.gsub!(/^.*$\n?/) do |line|
line_number_text = bolding.call line_number
- indent = ' ' * (max_width - line_number.to_s.size) # TODO: Optimize (10^x)
+ indent = ' ' * (max_width - line_number.to_s.size)
line_number += 1
"<span class=\"line-numbers\">#{indent}#{line_number_text}</span>#{line}"
end
diff --git a/lib/coderay/encoders/statistic.rb b/lib/coderay/encoders/statistic.rb
index 2315d9e..b2f8b83 100644
--- a/lib/coderay/encoders/statistic.rb
+++ b/lib/coderay/encoders/statistic.rb
@@ -67,7 +67,6 @@ Token Types (%d):
@type_stats['TOTAL'].count += 1
end
- # TODO Hierarchy handling
def begin_group kind
block_token ':begin_group', kind
end
diff --git a/lib/coderay/token_kinds.rb b/lib/coderay/token_kinds.rb
index 42ea427..9154658 100755
--- a/lib/coderay/token_kinds.rb
+++ b/lib/coderay/token_kinds.rb
@@ -44,7 +44,7 @@ module CodeRay
:important => 'important', # CSS, Taskpaper
:include => 'include', # C, Groovy, Java, Python, Sass
:inline => 'inline', # nested code, eg. inline string evaluation; lots of scanners
- :inline_delimiter => 'inline-delimiter', # used instead of :inline > :delimiter FIXME: Why?
+ :inline_delimiter => 'inline-delimiter', # used instead of :inline > :delimiter FIXME: Why use inline_delimiter?
:instance_variable => 'instance-variable', # Ruby
:integer => 'integer', # most scanners
:key => 'key', # lots of scanners, used together with :value