Well I found the answer to your question, it is
$$\sum_x \tan(x)=ix-\psi _{e^{2 i}}^{(0)}\left(x-\frac{\pi }{2}\right)+C$$
I have verified it with difference operator and it gives tan(x). The function involved is the q-digamma functions http://mathworld.wolfram.com/q-PolygammaFunction.html .