pulse00/Symfony-2-Eclipse-Plugin — pull request #94 by maoueh (2012-03-06 22:28:07+00:00)
Title: Annotation parser improvement

I made some improvements to the annotation parser. Here the list of changes:

1. Fixed a bug when a class was removed by the exclusion list and also by not being in the inclusion list which was causing a double `iterator.remove()` call.

2. The annotations `api` and `inheritdoc` used by within Symfony2 are now filtered out. That means they will not be highlighted anymore.

3. We now consider that an annotation must be followed by a whitespace characters (tab, space, newline, etc.). This will filter out false positive like `admin@email.com` where `@email` was recognized as an annotation.

4. Made the AnnotationCommentParser more efficient by changing its internals to parser multiple comments with othe same parser. Visitors that were extracting annotations from comments are now using a single parser for this task

5. Made API for AnnotationCommentParser and AnnotationUtils more useful and added docblocks to a lot of methods.

6. Comments are now extracted from the source using the ISourceModule which is the most accurate way to extract annotations since it preseve the exact characters. This fix also resolves the problem when an unresolved annotation was reported at the wrong location.

That's it, I think it summarize well the commits included in this PR.

You will need to merge PR-XX from Doctrine-Eclipse-Plugin after this PR has been merged.

Regards,
Matt