Implement the indentation handling in the scanner.