summaryrefslogtreecommitdiff
path: root/lib/coderay/tokens.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-03-16 18:35:43 +0000
committermurphy <murphy@rubychan.de>2006-03-16 18:35:43 +0000
commitace3fcea2ffccb6d88f155cd884eb05d2b2cb067 (patch)
treed98ec478acdcb6c5516cf47c4a9141ce95991fd3 /lib/coderay/tokens.rb
parentc9b79010179d695fa16e1dd2f51818fa5c929548 (diff)
downloadcoderay-ace3fcea2ffccb6d88f155cd884eb05d2b2cb067.tar.gz
HTML Encoder: hints fixed and improved. Still in progress.
Documentation cleanups.
Diffstat (limited to 'lib/coderay/tokens.rb')
-rw-r--r--lib/coderay/tokens.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/coderay/tokens.rb b/lib/coderay/tokens.rb
index e3b3305..c7ca356 100644
--- a/lib/coderay/tokens.rb
+++ b/lib/coderay/tokens.rb
@@ -161,12 +161,11 @@ module CodeRay
# This can not be undone, but should yield the same output
# in most Encoders. It basically makes the output smaller.
#
- # Combined with dump, it saves space for the cost
- # calculating time.
+ # Combined with dump, it saves space for the cost of time.
#
# If the scanner is written carefully, this is not required -
- # for example, consecutive //-comment lines can already be
- # joined in one token by the Scanner.
+ # for example, consecutive //-comment lines could already be
+ # joined in one comment token by the Scanner.
def optimize
print ' Tokens#optimize: before: %d - ' % size if $DEBUG
last_kind = last_text = nil
@@ -219,7 +218,7 @@ module CodeRay
dump.extend Undumping
end
- # The total size of the tokens;
+ # The total size of the tokens.
# Should be equal to the input size before
# scanning.
def text_size