/**
* Scan an ident string.
*/
private String scanIdent(int ch) {
StringBuffer ident = new StringBuffer();
final WordDetector wordDetector = IDENT_DETECTOR;
if (wordDetector.isWordStart((char)ch)) {
ident.append((char)ch);
lch = ch;
ch = fScanner.read();
while (wordDetector.isWordPart((char)ch)) {
ident.append((char)ch);
lch = ch;
ch = fScanner.read();
}
if (ch != BufferedDocumentScanner.EOF) fScanner.unread();