/**
     * Returns whether the MLC token containing <code>offs</code> appears to have a "nested" comment
     * (i.e., contains "<code>/*</code>" somewhere inside of it). This implies that it is likely a
     * "new" MLC and needs to be closed. While not foolproof, this is usually good enough of a sign.
     *
     * @param textArea
     * @param line
     * @param offs
     * @return Whether a comment appears to be nested inside this one.
     */
    private boolean appearsNested(RSyntaxTextArea textArea, int line, int offs) {

      final int firstLine = line; // Remember the line we start at.

      while (line < textArea.getLineCount()) {
        Token t = textArea.getTokenListForLine(line);
        int i = 0;
        // If examining the first line, start at offs.
        if (line++ == firstLine) {
          t = RSyntaxUtilities.getTokenAtOffset(t, offs);
          if (t == null) { // offs was at end of the line
            continue;
          }
          i = t.documentToToken(offs);
        } else {
          i = t.getTextOffset();
        }
        int textOffset = t.getTextOffset();
        while (i < textOffset + t.length() - 1) {
          if (t.charAt(i - textOffset) == '/' && t.charAt(i - textOffset + 1) == '*') {
            return true;
          }
          i++;
        }
        // If tokens come after this one on this line, our MLC ended.
        if (t.getNextToken() != null) {
          return false;
        }
      }

      return true; // No match - MLC goes to the end of the file
    }