From bca06f1ec361537c4c7f1368ca8838be2940dafe Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 7 Nov 2008 11:46:58 +0000 Subject: Improved YAML Scanner (ticket #34). * Added more YAML example files (website, database). * Minor code cleanup in Scanner. --- lib/coderay/scanner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay/scanner.rb') 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 -- cgit v1.2.1