private int getOtherToken(String content, int startOffset, int endOffset) {
		int endOfToken = startOffset + 1;
		while (endOfToken <= endOffset) {
			if (Character.isWhitespace(content.substring(endOfToken,
					endOfToken + 1).charAt(0)))
				break;
			endOfToken++;
		}
		String token = content.substring(startOffset, endOfToken);

		if (isRegisterKeyword(token))
			doc.setCharacterAttributes(startOffset, endOfToken - startOffset,
					registerKeyword, false);
		if (isInstructionKeyword(token))
			doc.setCharacterAttributes(startOffset, endOfToken - startOffset,
					instructionKeyword, false);

		return endOfToken + 1;
	}