class CodeRay::Scanners::Scanner

def line pos = self.pos

for debugging only.
Beware, this is implemented inefficiently. It should be used

See also: #column.
The current line position of the scanner, starting with 1.
def line pos = self.pos
  return 1 if pos <= 0
  binary_string[0...pos].count("\n") + 1
end