From 02e41d8e589183586ad50ad22d9352fca64f4336 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Mon, 29 Aug 2011 07:06:27 +0200 Subject: fixed YAML scanner (Scanner#column rewrite broke it) --- lib/coderay/scanner.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/coderay/scanner.rb') diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb index cce8633..7ecbe4f 100644 --- a/lib/coderay/scanner.rb +++ b/lib/coderay/scanner.rb @@ -231,9 +231,6 @@ module CodeRay # The current column position of the scanner, starting with 1. # See also: #line. - # - # Beware, this is implemented inefficiently. It should be used - # for debugging only. def column pos = self.pos return 1 if pos <= 0 pos - (binary_string.rindex(?\n, pos - 1) || -1) -- cgit v1.2.1