pulse00/Symfony-2-Eclipse-Plugin — pull request #91 by maoueh (2012-02-28 13:52:52+00:00)
Title: Rewrite of Annotation parser

This is the rewrite of the Annotation parsing code.

* Rewrited lexer and parser almost from scratch
* The new parser is designed to parse any annotations that is possible to write within Symfony2
* Added an annotation model which represents the annotation and its sub-annotations
* Changed and added tests for AnnotationParser and AnnotationCommentParser
* Added an AnnotationCommentParser responsible to parse annotations from a comment
* Ported code to use the new AnnotationCommentParser
* Tried hard to put comment parsing stuff in AnnotationUtils

Tests are passing except one which is also failling in the master branch. I tested what I could (highlighting, report unresolvable annotation, template view extraction). However, for some features (like the F3 for template), I was not able to test it until the end of the chain due to what I suspect are bugs.

Moreover, the last missing bit is the error reporter which is not appended to the parser for now. I think it is not that bad for now since the code for reporting the error in the concrete IErrorReporter is commented anyway.

I will send a PR to the Doctrine-Eclipse-Plugin since it depends of code from this PR.

This PR will fix gh-50. Don't hesitate to ask me if you want to change some stuff inside the PR or if you want me to squash the commits.

Regards,
Matt