code: public org.teatrove.tea.compiler.Scanner createScanner(SourceReader sr, CompilationUnit unit)
      throws IOException {
          org.teatrove.tea.compiler.Scanner scanner = super.createScanner(sr, unit);
          CompileListener scannerListener = getScannerListener();
          if (scannerListener != null) {
              scanner.addCompileListener(scannerListener);
          }
          return scanner;
      }
docs: Overridden to make public