summaryrefslogtreecommitdiff
path: root/lib/coderay/scanner.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2008-11-07 11:46:58 +0000
committermurphy <murphy@rubychan.de>2008-11-07 11:46:58 +0000
commitbca06f1ec361537c4c7f1368ca8838be2940dafe (patch)
treee9c4d15d4e6cc8bb0978cbe306b668eea94eb8f7 /lib/coderay/scanner.rb
parent3d8ad7f53879f4f7c31c3ad16beb547f74711465 (diff)
downloadcoderay-bca06f1ec361537c4c7f1368ca8838be2940dafe.tar.gz
Improved YAML Scanner (ticket #34).
* Added more YAML example files (website, database). * Minor code cleanup in Scanner.
Diffstat (limited to 'lib/coderay/scanner.rb')
-rw-r--r--lib/coderay/scanner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb
index a28f70f..831fc39 100644
--- a/lib/coderay/scanner.rb
+++ b/lib/coderay/scanner.rb
@@ -233,8 +233,8 @@ surrounding code:
tokens.last(10).map { |t| t.inspect }.join("\n"),
line, pos,
matched, state, bol?, eos?,
- string[pos-ambit,ambit],
- string[pos,ambit],
+ string[pos - ambit, ambit],
+ string[pos, ambit],
]
end