code: private Token quotedText(char quote) throws ScanException {
          nextChar(); // eat the '"'
          text = new StringBuilder();
          while (c != quote) {
              if (c == '\n') {
                  throw new ScanException("Unclosed quoted text, reached end of line.");
              }
              text.append(c);
              nextChar();
          }
          nextChar(); // eat the '"'
          return TEXT;
      }
docs: process quoted text