Fixed the class annotation only preg.

Now that I wanted to use this feature I found I couldn't.